Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:software:qview:qview_6:qcl_library:vi10extractdimension [2017/03/21 17:57] – created qem103en:software:qview:qview_6:qcl_library:vi10extractdimension [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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//
 +<code QCl>
 +MAIN:
 +      VI10InitBuffer(awBuffer)
 +      VI10GetDimension(awBuffer)
 +      VI10DrawBuffer(awBuffer)
 +      VI11WaitBufferReadyUsingWAIT(awBuffer)
 +      VI10ExtractDimension(awBuffer, awWidth, awHeight)
 +      VI10InitBuffer(awBuffer)
 +END
 +</code>
 +
 +=== 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