fxPaletteRGB
Macro returns a palette-relative RGB color specifier. An application using a color palette can pass this specifier, instead of an explicit RGB value, to functions that expect a color.
Declaration
Declare Function fxPaletteRGB Lib "fx.dll" ( _ ByVal R As Long, _ ByVal G As Long, _ ByVal B As Long) As Long
Parameters
· R Specifies the intensity of the red color field (0-255). · G Specifies the intensity of the green color field (0-255). · B Specifies the intensity of the blue color field (0-255).
Return Values
The return value is a palette-relative RGB color specifier. For output devices that support logical palettes, the system matches a palette-relative RGB value to the nearest color in the logical palette of the device context as though the application had specified an index to that palette entry. If an output device does not support a system palette, the system uses the palette-relative RGB as though it were a conventional RGB value returned by the RGB macro.