LEADBITMAPCOLORRES

typedef struct tagLEADBITMAPCOLORRES
{
   L_UINT uStructSize; 
   L_INT BitsPerPixel;
   L_UINT32 Flags;
   LPRGBQUAD pPalette;
   L_UINT Colors;
} LEADBITMAPCOLORRES, far * pLEADBITMAPCOLORRES;

The LEADBITMAPCOLORRES structure provides information in the L_BM_COLORRES message.

Member

Description

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value.

BitsPerPixel

The number of bits per pixel to increase or decrease the bitmap to. Valid values are 1, 4, 8, 16, 24, and 32.

Flags

Indicator of the color order or palette usage. Refer to Possible Flag Values.

pPalette

The palette to use if the CRF_USERPALETTE is specified in the Flags field.

 

This is an array of RGBQUAD values. For each item in the array do one of the following:

 

image\sqrblit.gif Enter the actual RGBQUAD value to specify a fixed color.

 

image\sqrblit.gif Enter RGB_RESERVED to Leave the item blank, for possible later use.

 

image\sqrblit.gif Enter RGB_EMPTY to let LEADTOOLS fill in the color. LEADTOOLS supplies optimized colors to fill the RGB_EMPTY items.

 

If CRF_USERPALETTE is not specified in the Flags field, this field should be NULL.

Colors

The number of colors in the palette specified by the pPalette field.

 

If CRF_USERPALETTE is not specified in the Flags field, this field should be NULL

Comments

pLEADBITMAPCOLORRES is a pointer to a LEADBITMAPCOLORRES structure. Where the message parameter type is pLEADBITMAPCOLORRES, you can declare a LEADBITMAPCOLORRES variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pLEADBITMAPCOLORRES variable is necessary only if your program requires a pointer.