COLORDATA

typedef struct tagCOLORDATA
{
   L_UINT uStructSize;
   L_INT nRedFactor;
   L_INT nGreenFactor;
   L_INT nBlueFactor;
   L_INT nConstant;
} COLORDATA, * pCOLORDATA;

The COLORDATA structure provides color balancing information to the LBitmap::ChannelMix function.

Member

Description

uStructSize

Size of this structure, in bytes. Use the sizeof operator to calculate this value.

nRedFactor

Value that represents the percentage of the red color value that should be distributed to the red component. Valid values are –200 to 200.

nGreenFactor

Value that represents the percentage of the green color value that should be distributed to the green component. Valid values are –200 to 200.

nBlueFactor

Value that represents the percentage of the blue color value that should be distributed to the blue component. Valid values are –200 to 200.

nConstant

Value that represents the color value that should be added to the whole image. Valid values are –200 to 200.

Comments

For a more detailed description of how this works, refer to LBitmap::ChannelMix.