CREATE_GRAPHICS_REGION@

Platform

Win32, x64

Purpose

To create an internal (off-screen) drawing surface.

Syntax

 INTEGER FUNCTION CREATE_GRAPHICS_REGION@( UID,
+ WIDTH, HEIGHT )
 INTEGER UID, WIDTH, HEIGHT

Description

This routine is used to create internal drawing surfaces. For example, it can be used to display part of a large bitmap. Areas of the buffer can be copied into a %gr (Graphics Region) region (for example) using COPY_GRAPHICS_REGION@. If you make extensive use of this function it is recommended that you delete unwanted surfaces with a call to DELETE_GRAPHICS_REGION@.

UID is an input value, chosen by the programmer, that must be unique. It is used to identify the surface in calls to related functions. WIDTH, HEIGHT specify the size in pixels of the region.

The colour mode for the surface will be determined by the default colour mode or by the colour mode of the current %gr drawing surface.

The function NEW_GRAPHICS_REGION@ can be used instead if you want to specify the initial colour

Return value

Returns 1 for success, otherwise zero.

See also

DELETE_GRAPHICS_REGION@, COPY_GRAPHICS_REGION@, SCROLL_GRAPHICS@, NEW_GRAPHICS_REGION@

 

 

Basket
Empty
 
Copyright © 1999-2020 Silverfrost Limited