QPix Command Reference Graphics Importers

QPx_GetImporterQuality

QPx_GetImporterQuality(importerRef; drawingQuality):error
importerRef Longint Reference to a graphics importer instance
drawingQuality Longint Drawing quality
error Longint Error result

Returns the current value of the drawing quality property of 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.

Drawing quality is returned as a value in drawingQuality in the range of 0..1024. Some graphics importers ignore this value to improve performance.

QPix defines the following drawing quality constants:

qpx_MinQuality 0 Minimal quality
qpx_LowQuality 256 Low quality
qpx_NormalQuality 512 Normal quality
qpx_HighQuality 768 High quality
qpx_MaxQuality 1023 Maximum quality
qpx_LosslessQuality 1024 Lossless quality

Example

  `Get quality
 
C_LONGINT($error)
 
C_LONGINT(gQPixImporter;$quality)
 
$error:=QPx_GetImporterQuality (gQPixImporter;$quality)
 
If ($error#qpx_noErr)
   `Handle the error
End if

Related commands

QPx_SetImporterQuality Sets the drawing quality property of a graphics importer

QPix © Escape Information Services
Generated by QDoc 2.6 on Thu, 2 May 2002 00:50:04 +0300