QPx_GetImporterImageRes
QPx_GetImporterImageRes(importerRef; importerRef; importerRef):error | |||
---|---|---|---|
![]() |
importerRef | Longint | Reference to a graphics importer instance |
![]() |
hRes | Longint | Horizontal resolution |
![]() |
vRes | Longint | Vertical resolution |
![]() |
error | Longint | Error result |
Get the resolution 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.
Horizontal resolution is returned in hRes, vertical resolution in vRes.
Example
// Get image resolution C_LONGINT($error) C_LONGINT($hRes;$vRes) C_LONGINT(gQPixImporter) $error:=QPx_GetImporterImageRes (gQPixImporter;$hRes;$vRes) If ($error#qpx_noErr) // Handle the error End if