Name
hw_MapRGB -- convert RGB color to pixel format (V6.0)
Synopsis
ULONG color = hw_MapRGB(ULONG rgb, int outfmt);
Function
This function converts the specified RGB color to the specified pixel format. See Pixel format information for details.

To convert a color from an arbitrary pixel format to RGB, use hw_GetRGB(). See hw_GetRGB for details.

Designer compatibility
Unsupported

Inputs
rgb
RGB color to convert
outfmt
output pixel format
Results
color
converted color

Show TOC