en:software:qview:qview_6:qcl_library:vi10addcircle

Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:vi10addcircle [2017/03/20 17:15] – created qem103en:software:qview:qview_6:qcl_library:vi10addcircle [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VI10AddCircle ======
 +
 +**V = **//Vector//
 +
 +**I = **//Image//
 +
 +Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions).
 +
 +The VI10AddCircle function __add the CIRCLE control point in the queue to be processed instructions in the Buffer to perform the drawing__.\\
 +The CIRCLE command creates a circle with Center positioned at coordinates and radius equal to the current parameter "Radius" is passed to the function.\\
 +The same coordinates passed to the function, it also set then as current coordinates.
 +
 +|Buffer|
 +|{{:software:qview:qview 5:funzioni_qcl:vi10addcircle:vi10addcircle.png?nolink200|}}|
 +
 +===== IMPLEMENTATION =====
 +
 +**VI10AddCircle (awBuffer, Radius, Fill)**
 +
 +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  |  Radius  |  W  |Variable containing the value of the radius of the circle you want to draw.|
 +|  IN  |  CONST/\\ GLOBAL  |  Fill  |  W  |Variable containing the information for the area fill inside of the rectangle.\\ Fill = 0: Inside area not filled with color\\ Fill = 1 :Indoor area filled with color|
 +
 +=== 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
 +
 +Radius = 20 ;Sets the radius of the circumference
 +
 +Fill = 0 ;Sets the secure area not filled
 +
 +VI10AddCircle (awBuffer, Radius, Fill) ;Adds the CIRCLE command
 +
 +.... 
 +
 +WAIT 1
 +JUMP MAIN
 +
 +END
 +</code>
 +
 +=== Note ===