Important: The information in this document is obsolete and should not be used for new development.
Determining Current Colors and Best Intermediate Colors
TheGetForeColor
andGetBackColor
procedures allow you to obtain the foreground and background colors for the current graphics port, both basic and color. You can use theGetCPixel
procedure to determine the color of an individual pixel. TheGetGray
function can do more than its name implies: it can return the best gray for a given graphics device, but it can also return the best available intermediate color between any two colors.
Subtopics
- GetForeColor
- GetBackColor
- GetCPixel
- GetGray