en:software:qview:qview_6:qcl_library:vi10setbackground

This translation is older than the original page and might be outdated. See what has changed.

VI10SetBackground

V = Vector

I = Image

Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions).

The VI10SetBackground function adds the background command instructions to process queued buffering for draw.
The background command need to set the background color of the VectorImage object.
To set the color of the background, see the Qpaint color code table.

VI10SetBackground (awBuffer, Color)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN ARRSYS /
ARRGBL
awBuffer W Array that serves as a buffer for instructions/data
IN CONST/
GLOBAL
Color W Variable containing the color you want to set
See the Qpaint color code table

Example

TASK_00

MAIN:
 
VI10InitBuffer (awBuffer)			;Initializes the Buffer
 
Color = 0					;Sets black color
 
VI10SetBackground (awBuffer, Color)		;Adds the command
 
....
 
WAIT 1
JUMP MAIN
 
END

Note

  • By default the drawing color is white.
  • Last modified: 2019/08/29 17:01