SOPutPaletteEntrySOPutPaletteEntry*
*



Contents  *



Index  *Topic Contents
*Previous Topic: SOPutMoreVarField
*Next Topic: SOPutParaAlign

SOPutPaletteEntry

Sets the colors for a palette entry.

Syntax


VOID SOPutPaletteEntry(
    unsigned char Red,   
    unsigned char Green, 
    unsigned char Blue,  
    HPROC reserved       
);

Parameters

Red
Relative red intensity in the range 0 to 255.
Green
Relative green intensity in the range 0 to 255.
Blue
Relative blue intensity in the range 0 to 255.
reserved
Reserved; do not use.

Return Value


No return value.

Remarks


The file parser must call the SOStartPalette function before calling this function.

The order of calls to this function determines the order of entries in the color table for an image. The first palette entry is color 0—the color displayed for pixels with a value of 0. The second palette entry is color 1, and so on.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.