QPix Command Reference Graphics Importers |

### QPx_SetImporterQuality

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

Sets the drawing quality property of a graphics importer instance. This will be used by the importer when drawing the image in a QPix plug-in area or in thumbnails.

The graphics importer instance is specified by importerRef.

The drawingQuality value is 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

If drawingQuality is not in the 0...1024 range or importerRef is not an existing graphics importer instance, the qpx_paramErr error code is returned.

Example

``Set quality to maximum` `` `C_LONGINT($error)` `C_LONGINT(gQPixImporter)` `` `$error:=QPx_SetImporterQuality (gQPixImporter;qpx_LosslessQuality)` `` `If ($error#qpx_noErr)` ``Handle the error` `End if`

Related commands

QPx_GetImporterQuality | Returns 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