ImageEn, unit imageenproc

TImageEnProc.Negative

TImageEnProc.Negative

Declaration

procedure Negative(); overload;
procedure Negative(Channels: 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

Demo  Demos\ImageEditing\CompleteEditor\PhotoEn.dpr
Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr

Example

Also see: Automated Samples
// 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();