Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:vi10addarc3 [2017/03/21 15:55] – created qem103 | en:software:qview:qview_6:qcl_library:vi10addarc3 [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VI10AddArc3 ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **I = **//Image// | ||
+ | |||
+ | Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions). | ||
+ | |||
+ | The VI10AddArc3 function __adds the ARC3 command queued to be processed in the Buffer instructions to perform the drawing__.\\ | ||
+ | The ARC3 commandtrace an arc on the circumference of a circle whose center is located at Xo and Yo passed to the function. This arc go from current coordinates to the X, Y coordinates, | ||
+ | The X and Y coordinates are also set, at the end of the statement, as current coordinates. | ||
+ | |||
+ | |Buffer| | ||
+ | |{{: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VI10AddArc3 (awBuffer, Coord_X, Coord_Y, Centre_Xo, Centre_Yo, Radius)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS /\\ ARRGBL | ||
+ | | IN | CONST/\\ GLOBAL | ||
+ | | IN | CONST/\\ GLOBAL | ||
+ | | IN | CONST/\\ GLOBAL | ||
+ | | IN | CONST/\\ GLOBAL | ||
+ | | IN | CONST/\\ GLOBAL | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | //TASK_00// | ||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | |||
+ | VI10InitBuffer (awBuffer) ; | ||
+ | |||
+ | Color = 0 ;Sets black color | ||
+ | |||
+ | VI10AddPen (awBuffer, Color) ; | ||
+ | |||
+ | Coord_X = 0 ;Sets the coordinates for the MOVE | ||
+ | |||
+ | Coord_y = 70 | ||
+ | |||
+ | VI10AddMove (awBuffer, Coord_X, Coord_Y) ; | ||
+ | |||
+ | Coord_X = 20 ; | ||
+ | |||
+ | Coord_y = 50 | ||
+ | |||
+ | Centre_Xo = 0 ;Sets the coordinates of the circumference center | ||
+ | |||
+ | Centre_Yo = 50 | ||
+ | |||
+ | Radius = 20 ; | ||
+ | |||
+ | VI10AddArc3 (awBuffer, Coord_X, Coord_Y, Centre_Xo, Centre_Yo, Radius) ;Adds the ARC3 command | ||
+ | |||
+ | .... | ||
+ | |||
+ | WAIT 1 | ||
+ | JUMP MAIN | ||
+ | |||
+ | END | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | *Considered the picture below: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | the ARC3 command trace an arc of a circle from point A to point B, on a circle that has its own centre in Co (Xo, Yo). | ||