en:software:qview:qview_6:qcl_library:vi10addpen

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

VI10AddPen

V = Vector

I = Image

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

The VI10AddPen function adds the command Buffer processing instructions by PEN queued to perform the drawing.
The PEN command need to set the color of the drawing to be made (0= Black , 255=White)

Buffer

VI10AddPen (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
0 = Black
255 = White

Example

TASK_00

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

Note

  • By default the drawing color is BLACK (=0).
  • Last modified: 2019/08/29 17:01