VI10GetDimension

V = Vector

I = Image

Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions).

The VI10GetDimension function adds the GetDimension command queue up the instructions to be processed into the Buffer to perform the drawing. The GetDimension command allows you to read the width and height size in pixels of the VectorImage object.
This command generates a run-time error then it must be always added as the last execution buffer.

IMPLEMENTATION

VI10GetDimension (awBuffer)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN ARRSYS /
ARRGBL
awBuffer W Array that serves as a buffer for instructions/data

Example

TASK_00

MAIN:
      VI10InitBuffer(awBuffer)
      VI10GetDimension(awBuffer)
      VI10DrawBuffer(awBuffer)
      VI11WaitBufferReadyUsingWAIT(awBuffer)
      VI10ExtractDimension(awBuffer, awWidth, awHeight)
      VI10InitBuffer(awBuffer)
END

Note