ImageEn, unit imageenproc |
|
TImageEnProc.Negative
Declaration
procedure Negative(); overload;
procedure Negative(Ch: TIEChannels); overload;
Description
Invert colors of the selected region.
The first overload inverts all colors.
The second allows you to specify which colors to overload. The
PixelFormat must support color, e.g. ie24RGB, ie32RGB, ie48RGB, ieCIELab or ieCMYK.
Note: A UI for this is available to your users in the
Image Processing dialog
| Demos\ImageEditing\CompleteEditor\PhotoEn.dpr |
| Demos\ImageEditing\EveryMethod\EveryMethod.dpr |
// Invert the red and green channels
ImageEnView1.Proc.Negative([iecRed, iecGreen] );
// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );
// Invert the image colors
ImageEnView1.Proc.Negative();