QPix Command Reference Graphics Importers

QPx_GetImporterImageDepth

QPx_GetImporterImageDepth(importerRef; pixelDepth):error
importerRef Longint Reference to a graphics importer instance
pixelDepth Longint Pixel depth
error Longint Error result

Returns the pixel depth 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.

Pixel depth is returned in pixelDepth. Possible values returned in the pixelDepth parameter are:

Black and white images1
Color images2, 8, 16, 24, 32
Grayscale images34 (2 bit), 36 (4-bit), 40 (8-bit)

Example

  `Get pixel depth
 
C_LONGINT($error)
C_LONGINT($pixelDepth)
 
C_LONGINT(gQPixImporter)
 
$error:=QPx_GetImporterImageDepth (gQPixImporter;$pixelDepth)
 
If ($error#qpx_noErr)
   `Handle the error
End if

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