DIB_ColorInfo
COLORREF DIB_ColorInfo(LPPDEVICE lpDestDev, DWORD dwColorin,
LPPCOLOR lpPColor)
Converts a logical color (an RGB value) to a physical color (a physical color value) or converts a physical to a logical color, depending on the value of the lpPColor parameter.
- Returns the logical color (RGB value) that most closely matches the physical color specified by dwColorin, or the color copied structure addressed by lpPColor, if successful.
- lpDestDev
- Address of a PDEVICE or PBITMAP structure specifying the destination device or bitmap.
- dwColorin
- Either a logical or physical color, depending on the value of lpPColor parameter.
- lpPColor
- Address of a PCOLOR structure or NULL. If lpPColor points to a PCOLOR structure, the function assumes that dwColorin specifies a logical color (an RGB value) and copies the physical color value that most closely matches the logical color to this structure. If lpPColor is NULL, the function assumes that dwColorin specifies a physical color and returns the logical color that matches the physical color.
The export ordinal for this function is 2.