en:software:qview:qview_6:qcl_library:vi10addmovearea

Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:vi10addmovearea [2017/03/21 16:53] – created qem103en:software:qview:qview_6:qcl_library:vi10addmovearea [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VI10AddMoveArea ======
 +
 +**V = **//Vector//
 +
 +**I = **//Image//
 +
 +Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions).
 +
 +The VI10AddMoveArea function __adds the MOVEAREA command instructions to process queued buffering for drawing__.\\
 +The MOVEAREA command moves the image to a number of pixels equal to x on the horizontal axis and y on the vertical axis.\\
 +If x is positive the move will be to the right, if x is negative, the move will be to the left.\\
 +If y is positive the move will be to the upward, is y is negative, the move will be to the down.
 +
 +|Buffer|
 +|{{:software:qview:qview 5:funzioni_qcl:vi10addmovearea:vi10addmovearea.png?nolink200|}}|
 +
 +===== IMPLEMENTATION =====
 +
 +**VI10AddMoveArea (awBuffer, Spazio_X, Spazio _Y)**
 +
 +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  |  Spazio_X  |  W  |Variable containing the space by shifting the image along the X axis.\\ X positive = move to the right\\ X negative = move to the left|
 +|  IN  |  CONST/\\ GLOBAL  |  Spazio_Y  |  W  |Variable containing the space by shifting the image along the Y axis.\\ Y positive = move to the upward\\ Y negative = move to the down|
 +
 +=== Example ===
 +
 +//TASK_00//
 +<code QCL>
 +MAIN:
 +
 +VI10InitBuffer (awBuffer) ;Initializes the Buffer
 +
 +VI10AddPen (awBuffer, Color) ;Adds the PEN command
 +
 +Coord_X = 20 ;Sets the new current coordinate X
 +
 +Coord_Y = 50 ;Sets the new current coordinate Y
 +
 +VI10AddMoveArea (awBuffer, Spazio_X, Spazio _Y) ;Adds the MOVEAREA command
 +
 +.... 
 +
 +WAIT 1
 +JUMP MAIN
 +
 +END
 +</code>
 +
 +=== Note ===
 +