Name
GetRealColor -- return representation of a color on the current screen (V1.5)
Synopsis
color = GetRealColor(col)
Function
This function returns the color which represents the specified color on the current screen. On 24-bit and 32-bit screens, the returned color is always the same as the color you specified. On 15-bit and 16-bit screens, the returned color is slightly different from the original color in most cases because those screens do not have 16.7 million colors but only 65536 (16-bit screens) respectively 32768 (15-bit screens).

This is command is mostly used in connection with ReadPixel().

Inputs
col
color to find the representation for
Results
color
color which represents the specified input color
Example
color = GetRealColor($FFFFFF)
Color will get the following values on... 1) 24-bit and 32-bit screens: $FFFFFF 2) 16-bit screens: $F8FCF8 3) 15-bit screens: $F8F8F8

Show TOC