Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:vi10addarc2 [2017/03/21 15:36] – created qem103 | en:software:qview:qview_6:qcl_library:vi10addarc2 [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VI10AddArc2 ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **I = **//Image// | ||
+ | |||
+ | Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions). | ||
+ | |||
+ | The VI10AddArc2 function __dds the ARC2 command queued to be processed in the Buffer instructions to perform the drawing__.\\ | ||
+ | The ARC2 command trace an arc of type II or IV (see drawing in notes) current coordinates to 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 ===== | ||
+ | |||
+ | **VI10AddArc2 (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 the 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 | ||
+ | |||
+ | VI10AddArc2 (awBuffer, Coord_X, Coord_Y, Radius); | ||
+ | |||
+ | .... | ||
+ | |||
+ | WAIT 1 | ||
+ | JUMP MAIN | ||
+ | |||
+ | END | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | * Considered the picture below: | ||
+ | {{: | ||
+ | |||
+ | The circumference arc between point A and point B can be executed through one of the four trajectories I, II, III or IV. The ARC2 function execute the trajectories that belong to the circumference with the most " | ||
+ | If you want to execute a cricumference arc It belongs to the circumference whose Center Co such as that represented by the trajectories I or III, you must use th ARC1e function, with which, by setting a negative radius, will be the I trajectory, while setting a positive radius will be the trajectory III. | ||