Silverfrost Logo About Us | Contact Us
 

USE_RGB_COLOURS@

Platform

Win32(ClearWin+)

Purpose

To switch between colour modes on a drawing surface.

Syntax

INTEGER FUNCTION USE_RGB_COLOURS@( HANDLE, BOOL )
INTEGER HANDLE, BOOL 

Description

HANDLE is the programmer's handle for the drawing surface as used for example in SELECT_GRAPHICS_OBJECT@ and %`gr. If HANDLE is zero then the current drawing surface is assumed. BOOL can be either 1 or 0. If it is 1 then the RGB colour mode will be used otherwise VGA colour mode (see Graphics format).

Return value

Returns 1 for success or zero if the handle is not valid.

See also

SET_RGB_COLOURS_DEFAULT@, %gr[rgb_colours]

 

 

Copyright © 1999-2017 Silverfrost Limited