61.4.4 Color

Color functions control the color used by the output primitives.

The color functions include:

Function Description

GetBkColor Returns the current background color
GetBkMode Returns the current background mode
GetNearestColor Returns the RGB color that will be displayed for the given color
GetPixel Retrieves the RGB value for a pixel
ResizePalette Changes the size of a logical palette
SetBkColor Sets the background color
SetBkMode Sets the background mode
SetPixel Sets the RGB value for a pixel