C# Class Accord.Imaging.Filters.Invert

Invert image.

The filter inverts colored and grayscale images.

The filter accepts 8, 16 bpp grayscale and 24, 48 bpp color images for processing.

Sample usage:

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

Initial image:

Result image:

Inheritance: BaseInPlacePartialFilter
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Invert ( ) : System

Initializes a new instance of the Invert class.

Protected Methods

Method Description
ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void

Process the filter on the specified image.

Method Details

Invert() public method

Initializes a new instance of the Invert class.
public Invert ( ) : System
return System

ProcessFilter() protected method

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.
return void