ChannelMix method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short ChannelMix (ILEADRaster *pRaster, short iRedFactorR, short iRedFactorG, short iRedFactorB, short iRedFactorConstant, short iGreenFactorR, short iGreenFactorG, short iGreenFactorB, short iGreenFactorConstant, short iBlueFactorR, short iBlueFactorG, short iBlueFactorB, short iBlueFactorConstant);

Overview

Refer to Correcting Colors

Remarks

Redistributes the RGB values of the specified bitmap, using the values stored in the specified structures.

This method is used to rebalance the colors in a bitmap. It can be used to make color adjustments and corrections.

This method supports 1, 2, 3, 4, 5, 6, 7, 8, 24 and 48 bit bitmaps and can support regions for 24 and 48 bit bitmaps. If the bitmap has a region, the effect will be applied on the region only.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

ConvertToColoredGray, BalanceColors, GrayScale, GrayScaleExt, IsGrayScale

Topics:

Raster Image Functions: Modifying Intensity Values