Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:vi10addcls [2017/03/16 17:01] – created qem103en:software:qview:qview_6:qcl_library:vi10addcls [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VI10AddCls ======
 +
 +**V = **//Vector//
 +
 +**I = **//Image//
 +
 +Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions).
 +
 +The VI10AddCls function __adds the CLS command queued to the instructions to be processed into the Buffer to perform the drawing__.\\
 +The CLS command (Clear Screen) clear the area of the Vector Image.
 +
 +|Buffer|
 +|{{:software:qview:qview 5:funzioni_qcl:vi10addcls:vi10addcls.png?nolink200|}}|
 +
 +===== IMPLEMENTATION =====
 +
 +**VI10AddCls (awBuffer)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  ARRSYS /\\ ARRGBL  |  awBuffer  |  W  |Array that serves as a buffer for instructions/data|
 +
 +=== Example ===
 +
 +//TASK_00//
 +<code QCL>
 +MAIN:
 +
 +VI10InitBuffer (awBuffer) ;Initializes the Buffer
 +
 +VI10AddCls (awBuffer)         ;Adds the CLS command
 +
 +.... 
 +
 +WAIT 1
 +JUMP MAIN
 +
 +END
 +</code>
 +
 +=== Note ===
 +
 +  * The CLS command clears the area of the Vector Image, sets the current coordinate to 0.0 and the draw-color to DIRECT (=255, white on white background).