Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:vi10addarc1 [2017/03/20 17:46] – created qem103 | en:software:qview:qview_6:qcl_library:vi10addarc1 [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VI10AddArc1 ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **I = **//Image// | ||
+ | |||
+ | Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions). | ||
+ | |||
+ | The VI10AddArc1 function __adds the ARC1 command queued to be processed in the Buffer instructions to perform the drawing__.\\ | ||
+ | The ARC1 command trace an arc type I or III (see drawing in notes) current coordinates x and y coordinates passed through the function.\\ | ||
+ | The X and Y coordinates are also set, at end of statement, as current coordinates. | ||
+ | |||
+ | |Buffer| | ||
+ | |{{: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VI10AddArc1 (awBuffer, Coord_X, Coord_Y, Radius)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS /\\ ARRGBL | ||
+ | | 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 = 0 | ||
+ | |||
+ | VI10AddMove (awBuffer, Coord_X, Coord_Y) ; | ||
+ | |||
+ | Coord_X = 100 ; | ||
+ | |||
+ | Coord_y = 50 | ||
+ | |||
+ | Radius = 200 | ||
+ | |||
+ | VI10AddArc1 (awBuffer, Coord_X, Coord_Y, Radius); | ||
+ | |||
+ | .... | ||
+ | |||
+ | WAIT 1 | ||
+ | JUMP MAIN | ||
+ | |||
+ | END | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | *Considered the figure below: | ||
+ | {{: | ||
+ | |||
+ | The arc between point A and point B can run through one of the four trajectories I, II, III o IV. The ARC1 function execute the trajectories that belong to the circle with the " | ||
+ | If you want to execute an arc that belongs to the circumference with C1 center as that represented by the trajectories II or IV, you must use the ARC2 function, with which, by setting a negative radius, we will make the trajectory II, while setting a positive RADIUS will be the trajectory IV. | ||