Invert image.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public sealed class Invert : BaseInPlacePartialFilter

Remarks

The filter inverts colored and grayscale images.

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

Sample usage:

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

Initial image:

Result image:

Inheritance Hierarchy

See Also