en:software:qview:qview_6:qcl_library:vi10setbackground

Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:vi10setbackground [2017/03/21 16:24] – created qem103en:software:qview:qview_6:qcl_library:vi10setbackground [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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//
 +<code QCL>
 +MAIN:
 +
 +VI10InitBuffer (awBuffer) ;Initializes the Buffer
 +
 +Color = 0 ;Sets black color
 +
 +VI10SetBackground (awBuffer, Color) ;Adds the command
 +
 +....
 +
 +WAIT 1
 +JUMP MAIN
 +
 +END
 +</code>
 +
 +=== Note ===
 +
 +  * By default the drawing color is white.