Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:vi10addrect [2017/03/20 16:46] – created qem103 | en:software:qview:qview_6:qcl_library:vi10addrect [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VI10AddRect ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **I = **//Image// | ||
+ | |||
+ | Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions). | ||
+ | |||
+ | The VI10AddRect function __adds the RECT command queued to be processed instructions in the Buffer to perform the drawing__.\\ | ||
+ | The RECT command creates a rectangle with an edge set on the current coordinates and the opposite edge positioned at coordinates passed as an argument.\\ | ||
+ | The same coordinates passed to the function, it also set then as current coordinates. | ||
+ | |||
+ | |Buffer| | ||
+ | |{{: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VI10AddRect (awBuffer, Coord_X, Coord_Y, Fill)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS /\\ ARRGBL | ||
+ | | IN | CONST/\\ GLOBAL | ||
+ | | IN | CONST/\\ GLOBAL | ||
+ | | IN | CONST/\\ GLOBAL | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | //TASK_00// | ||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | |||
+ | VI10InitBuffer (awBuffer) | ||
+ | |||
+ | VI10AddPen (awBuffer, Color) | ||
+ | |||
+ | Coord_X = 30 | ||
+ | |||
+ | Coord_Y = 30 | ||
+ | |||
+ | VI10AddSet (awBuffer, Coord_X, Coord_Y) | ||
+ | |||
+ | Coord_X = 30 | ||
+ | |||
+ | Coord_Y = 30 | ||
+ | |||
+ | Fill = 0 ; | ||
+ | |||
+ | **VI10AddRect (awBuffer, Coord_X, Coord_Y, Fill)** ; | ||
+ | |||
+ | .... | ||
+ | |||
+ | WAIT 1 | ||
+ | JUMP MAIN | ||
+ | |||
+ | END | ||
+ | </ | ||
+ | |||
+ | === Note === | ||