Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:vi10begindrawbuffer [2017/02/27 17:28] – created qem103 | en:software:qview:qview_6:qcl_library:vi10begindrawbuffer [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VI10BeginDrawBuffer ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **I = **//Image// | ||
+ | |||
+ | Function that is used to manage the Vector Image feature (object that resides on some versions of Qpaint). | ||
+ | |||
+ | The VI10BeginDrawBuffer function has the task of preparing the buffer to next add paint operations. | ||
+ | The function also checks for errors and then places them in the variable given as the second argument. | ||
+ | |||
+ | Before you start building the buffer content, if you want to start a new drawing, you must call this function or function [[.: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VI10BeginDrawBuffer (awBuffer, gwError)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS /\\ ARRGBL | ||
+ | | OUT | SYSTEM /\\ GLOBAL | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | //TASK_00// | ||
+ | <code QCl> | ||
+ | MAIN: | ||
+ | IF gfDraw | ||
+ | VI11WaitBufferReadyUsingWAIT(awBuffer) | ||
+ | VI10BeginDrawBuffer(awBuffer, | ||
+ | IF gwError | ||
+ | ; Error report | ||
+ | ELSE | ||
+ | ... | ||
+ | VI10DrawBuffer(awBuffer) | ||
+ | ENDIF | ||
+ | gfDraw = 0 | ||
+ | ENDIF | ||
+ | END | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | In case the error variable already has a value other than zero, it __will not be overwritten__. | ||