Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:software:qview:qview_6:qcl_library:vi10addpen [2017/03/20 15:53] – created qem103en:software:qview:qview_6:qcl_library:vi10addpen [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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|
 +|{{:software:qview:qview 5:funzioni_qcl:vi10addpen:vi10addpen.png?nolink200|}}|
 +
 +===== IMPLEMENTATION =====
 +
 +**VI10AddPen (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\\ 0 = Black\\ 255 = White|
 +
 +=== Example ===
 +
 +//TASK_00//
 +<code QCL>
 +MAIN:
 +
 +VI10InitBuffer (awBuffer) ;Initializes the Buffer
 +
 +Color = 0 ;Sets the color Black
 +
 +VI10AddPen (awBuffer, Color)          ;Adds the command PEN
 +
 +.... 
 +
 +WAIT 1
 +JUMP MAIN
 +
 +END
 +</code>
 +
 +=== Note ===
 +
 +  * By default the drawing color is BLACK (=0).