QPix Command Reference
Graphics Importers
|
|
| QPx_GetImporterImageRes(importerRef; hRes; vRes):error | |||
|
|
importerRef | Longint | Reference to a graphics importer instance |
|
|
hRes | Longint | Horizontal resolution |
|
|
vRes | Longint | Vertical resolution |
|
|
error | Longint | Error result |
Returns the horizontal and vertical resolution of the image associated with a graphics importer instance.
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 and 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 errorEnd if |