Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:vi10addmovearea [2017/03/21 16:53] – created qem103 | en:software:qview:qview_6:qcl_library:vi10addmovearea [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VI10AddMoveArea ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **I = **//Image// | ||
+ | |||
+ | Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions). | ||
+ | |||
+ | The VI10AddMoveArea function __adds the MOVEAREA command instructions to process queued buffering for drawing__.\\ | ||
+ | The MOVEAREA command moves the image to a number of pixels equal to x on the horizontal axis and y on the vertical axis.\\ | ||
+ | If x is positive the move will be to the right, if x is negative, the move will be to the left.\\ | ||
+ | If y is positive the move will be to the upward, is y is negative, the move will be to the down. | ||
+ | |||
+ | |Buffer| | ||
+ | |{{: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VI10AddMoveArea (awBuffer, Spazio_X, Spazio _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 ; | ||
+ | |||
+ | VI10AddMoveArea (awBuffer, Spazio_X, Spazio _Y) ;Adds the MOVEAREA command | ||
+ | |||
+ | .... | ||
+ | |||
+ | WAIT 1 | ||
+ | JUMP MAIN | ||
+ | |||
+ | END | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||