Silverfrost Logo About Us | Contact Us
 

GET_MATCHED_COLOUR@

Platform

Win32(ClearWin+)

Purpose

To find the closest RGB colour match for the current drawing surface.

Syntax

INTEGER FUNCTION GET_MATCHED_COLOUR@(COLOUR)
INTEGER 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

GET_NEAREST_SCREEN_COLOUR@, USE_RGB_COLOURS@

Example

See Windows graphic modes.

 

 

Copyright © 1999-2017 Silverfrost Limited