Prev Next
RGB info Overview GroupThe RGB macro selects a red, green, blue (RGB) color based on the arguments supplied and the color capabilities of the output device. COLORREF RGB(
Parameters
Return ValuesThe return value is the resultant RGB color. RemarksThe intensity for each argument is in the range 0 through 255. If all three intensities are zero, the result is black. If all three intensities are 255, the result is white. For information about using color values in a color palette, see the descriptions of the PALETTEINDEX and PALETTERGB macros. The RGB macro is defined as follows: #define RGB(r, g ,b) ((DWORD) (((BYTE) (r) | \ ((WORD) (g) << 8)) | \ (((DWORD) (BYTE) (b)) << 16))) See Also |