en:software:qview:qview_6:qcl_library:vi10begindrawbuffer

This translation is older than the original page and might be outdated. See what has changed.

VI10BeginDrawBuffer

V = Vector

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 VI10InitBuffer.

VI10BeginDrawBuffer (awBuffer, gwError)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN ARRSYS /
ARRGBL
awBuffer W Array that serves as a buffer for instructions/data
OUT SYSTEM /
GLOBAL
gwError W Error variable

Example

TASK_00

MAIN:
  IF gfDraw
    VI11WaitBufferReadyUsingWAIT(awBuffer)
    VI10BeginDrawBuffer(awBuffer, gwError)
    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.

  • Last modified: 2019/08/29 17:01