QPx_GetImporterImageSize
QPx_GetImporterImageSize(importerRef; importerRef; importerRef):error | |||
---|---|---|---|
![]() |
importerRef | Longint | Reference to a graphics importer instance |
![]() |
imageWidth | Longint | Image width |
![]() |
imageHeight | Longint | Image height |
![]() |
error | Longint | Error result |
Get the dimensions of the image associated with an importer
The graphics importer instance is specified by importerRef. If importerRef does not refer to an existing graphics importer instance, the qpx_paramErr error code is returned.
The image dimensions are returned in imageWidth and imageHeight.
Example
// Get image size C_LONGINT($error) C_LONGINT($width;$height) C_LONGINT(gQPixImporter) $error:=QPx_GetImporterImageSize (gQPixImporter;$width;$height) If ($error#qpx_noErr) //Handle the error End if