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.
IMPLEMENTATION
VI10SetBackground (awBuffer, Color)
Parameters:
IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
---|---|---|---|---|
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.