GrFindColor()

Name

GrFindColor() -- Find closest color match

Synopsis

void GrFindColor ( GR_COLOR color , GR_PIXELVAL * retpixel );

Description

This function calculates the pixel value to use to display the specified color value. The color parameter is specified as a architecture independant GR_COLOR, value the pixel value structure is architecture dependent.

Parameters

TypeNameDescription
GR_COLORcolorThe color value to find.
GR_PIXELVAL*retpixelA pointer to the caller supplied GR_PIXELVAL structure.

See Also

GR_PIXELVAL, GrGetSystemPalette(), GrSetSystemPalette(), GrGetSysColor().