Differences
This shows you the differences between two versions of the page.
| en:software:qview:qview_6:qcl_library:vi10addset [2017/03/20 16:19] – created qem103 | en:software:qview:qview_6:qcl_library:vi10addset [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== VI10AddSet ====== | ||
| + | |||
| + | **V = **// | ||
| + | |||
| + | **I = **//Image// | ||
| + | |||
| + | Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions). | ||
| + | |||
| + | The VI10AddSet function __adds the SET command in the queue to the instructions to be processed into the Buffer to perform the drawing__.\\ | ||
| + | The SET commandsets the current coordinate within the area of the Vector Image, with x and y passed values. The new coordinate determines the starting point for the shape drawn later. | ||
| + | |||
| + | |Buffer| | ||
| + | |{{: | ||
| + | |||
| + | ===== IMPLEMENTATION ===== | ||
| + | |||
| + | **VI10AddSet (awBuffer, Coord_X, Coord_Y)** | ||
| + | |||
| + | Parameters: | ||
| + | |||
| + | ^IN/ | ||
| + | | IN | ARRSYS /\\ ARRGBL | ||
| + | | IN | CONST/\\ GLOBAL | ||
| + | | IN | CONST/\\ GLOBAL | ||
| + | |||
| + | === Example === | ||
| + | |||
| + | //TASK_00// | ||
| + | <code QCL> | ||
| + | MAIN: | ||
| + | |||
| + | VI10InitBuffer (awBuffer) ; | ||
| + | |||
| + | VI10AddPen (awBuffer, Color) ; | ||
| + | |||
| + | Coord_X = 20 ; | ||
| + | |||
| + | Coord_Y = 50 ; | ||
| + | |||
| + | VI10AddSet (awBuffer, Coord_X, Coord_Y) ;Adds the SET command | ||
| + | |||
| + | .... | ||
| + | |||
| + | WAIT 1 | ||
| + | JUMP MAIN | ||
| + | |||
| + | END | ||
| + | </ | ||
| + | |||
| + | === Note === | ||