QPxObs_GetImporterQuality

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

Do not use this command in QPix v3 or later

This command is preserved in QPix v3 for backward compatibility reasons. The graphics importer quality has no meaning in QPix v3 and later.


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

QPxObs_SetImporterQuality Sets the drawing quality property of a graphics importer (obsolete)

QPix © Escape
Generated by QDoc 2.8 on Wed, Feb 17, 2010 17:47:01