en:software:qview:qview_6:qcl_library:vi10addline

Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:vi10addline [2017/03/20 16:37] – created qem103en:software:qview:qview_6:qcl_library:vi10addline [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VI10AddLine ======
 +
 +**V = **//Vector//
 +
 +**I = **//Image//
 +
 +Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions).
 +
 +The VI10AddLine function __adds the command LINE instructions queued to be processed into the Buffer to perform the drawing__.\\
 +The LINE command prints a continuous line (horizontal, vertical, oblique) from the current coordinate to the coordinate (x,y) passed as an argument.\\
 +The same coordinates passed to the function, it also set as current coordinates.
 +
 +|Buffer|
 +|{{:software:qview:qview 5:funzioni_qcl:vi10addline:vi10addline.png?nolink200|}}|
 +
 +===== IMPLEMENTATION =====
 +
 +**VI10AddLine (awBuffer, Coord_X, Coord_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  |  Coord_X  |  W  |Variable containing the X-coordinate of the ending point of the line.|
 +|  IN  |  CONST/\\ GLOBAL  |  Coord_Y  |  W  |Variable containing the Y-coordinate of the ending point of the line.|
 +
 +=== Example ===
 +
 +//TASK_00//
 +<code QCL>
 +MAIN:
 +
 +VI10InitBuffer (awBuffer) ;Initializes the Buffer
 +
 +VI10AddPen (awBuffer, Color) ;Adds the PEN command
 +
 +VI10AddMove (awBuffer, Coord_X, Coord_Y) ;Adds the MOVE command
 +
 +Coord_X = 25 ;The X-coordinate of the line's end
 +
 +Coord_Y = 50 ;The Y-coordinate of the line's end
 +
 +VI10AddLine (awBuffer, Coord_X, Coord_Y) ;Adds the LINE command
 +
 +.... 
 +
 +WAIT 1
 +JUMP MAIN
 +
 +END
 +</code>
 +
 +=== Note ===