Graphics functions (palette)

In this section:

GET_DISPLAY_BITS@

Gets the number of screen colours.

GET_MATCHED_COLOUR@

Gets the closest match on the current drawing surface.

GET_NEAREST_SCREEN_COLOUR@

Gets the closest screen colour match from the system palette.

GET_RGB_VALUE@

Gets the RGB value of the colour of a pixel on the current drawing surface.

HIGH_COLOUR_MODE@

Tests if the screen is a high colour device.

SET_RGB_COLOURS_DEFAULT@

Changes the global default colour mode.

USE_APPROXIMATE_COLOURS@

Switches off colour matching.

USE_RGB_COLOURS@

Switches between VGA colour mode and RGB colour mode on a drawing surface.


The following functions access an intenal ClearWin+ palette - a logical palette that is attached to the device context of each drawing surface. Palettes are redundant if the graphics device is a high colour device (i.e. has more than 8 bits per pixel). These functions are unsupported and nolonger documented.

GET_COLOURS@

Accesses palette data.

GET_PCL_PALETTE@

Accesses palette data.

LOAD_PCL_COLOURS@

Loads standard PCL colours.

LOAD_STANDARD_COLOURS@

Loads standard VGA colours.

PERFORM_COLOURS@

Implements a palette change.

SET_COLOURS@

Loads given palette data.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited