Important: The information in this document is obsolete and should not be used for new development.
Determining Current Colors and Best Intermediate Colors
TheGetForeColorandGetBackColorprocedures allow you to obtain the foreground and background colors for the current graphics port, both basic and color. You can use theGetCPixelprocedure to determine the color of an individual pixel. TheGetGrayfunction 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