en:software:qview:qview_6:qcl_library:vi10extractdimension

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

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.

VI10ExtractDimension (awBuffer, awWidth, awHeight)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
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
  • Last modified: 2019/08/29 17:01