VI10ExtractDimension
V = Vector
I = Image
Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions).
The VI10ExtractDimension function allows to extract from the Buffer instructions, and the width and height of the VectorImage object.
This function of the always run after a VI10GetDimension command.
IMPLEMENTATION
VI10ExtractDimension (awBuffer, awWidth, awHeight)
Parameters:
IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
---|---|---|---|---|
IN | ARRSYS / ARRGBL | awBuffer | W | Array that serves as a buffer for instructions/data |
OUT | GLOBAL | awWidth | W | Variable containing the pixel width of the VectorImage object |
OUT | GLOBAL | awHeight | W | Variable containing the pixel height of the VectorImage object |
Example
TASK_00
MAIN: VI10InitBuffer(awBuffer) VI10GetDimension(awBuffer) VI10DrawBuffer(awBuffer) VI11WaitBufferReadyUsingWAIT(awBuffer) VI10ExtractDimension(awBuffer, awWidth, awHeight) VI10InitBuffer(awBuffer) END
Note
-
Before the command ExtractDimension you must have execute the VI10GetDimension command
-
After you execute the ExtractDimension command You must reinitialize the buffer with the VI10InitBuffer command