Platform |
Win32, x64 |
Purpose |
To find the closest RGB colour match for the current drawing surface. |
Syntax |
INTEGER FUNCTION GET_MATCHED_COLOUR@(COLOUR) |
Description |
GET_MATCHED_COLOUR@ selects the RGB palette colour that is the best match to the supplied RGB COLOUR on the current drawing surface. An error condition arises if RGB colour mode is not selected on the current drawing surface. If there is no current drawing surface then the function returns its input value. Likewise, the function returns its input value if the region is a printer or if the graphics device is a high colour device (i.e. more than 8 bits per pixel). |
Return value |
Returns the closest match for the current drawing surface. |
See also |
|
Example |