GET_NEAREST_SCREEN_COLOUR@

Platform

Win32, x64

Purpose

To find the closest colour match for the screen from the system palette.

Syntax

INTEGER FUNCTION GET_NEAREST_SCREEN_COLOUR@(COLOUR)
INTEGER COLOUR 

Return value

Returns the RGB colour from the Windows system palette that will be displayed when the specified colour value is used on the screen (the value returned by the Windows API function GetNearestColor).

Notes

You can use this function to provide a colour for a drawing surface if you want to over-ride the colour matching carried out automatically by ClearWin+. See Windows graphic modes for further details.

See also

GET_MATCHED_COLOUR@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited