SwapColors method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int __fastcall SwapColors (int nFlags);

Delphi Syntax

Function SwapColors (nFlags: Integer): Integer;

Overview

Refer to Correcting Colors.

Remarks

Swaps the specified color channels.

This method changes the bitmap data.

This method can process the whole image or a region of the image.

This method supports 48 and 64-bit colored images.

This method supports signed data images.

See Also

Elements:

ConvertToColoredGray method, BalanceColors method, GrayScale method, GrayScaleExt method, IsGrayScale property

Topics:

Raster Images: Modifying Intensity Values