C# Class Accord.Imaging.Filters.RotateChannels

Rotate RGB channels.

The filter rotates RGB channels: red channel is replaced with green, green channel is replaced with blue, blue channel is replaced with red.

The filter accepts 24/32 bpp color images for processing.

Sample usage:

// create filter RotateChannels filter = new RotateChannels( ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance: BaseInPlacePartialFilter
Afficher le fichier Open project: accord-net/framework

Méthodes publiques

Méthode Description
RotateChannels ( ) : System

Initializes a new instance of the RotateChannels class.

Méthodes protégées

Méthode Description
ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void

Process the filter on the specified image.

Method Details

ProcessFilter() protected méthode

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void
image UnmanagedImage Source image data.
rect System.Drawing.Rectangle Image rectangle for processing by the filter.
Résultat void

RotateChannels() public méthode

Initializes a new instance of the RotateChannels class.
public RotateChannels ( ) : System
Résultat System