QPix Command Reference Pictures

QPx_GetPictureInfo

QPx_GetPictureInfo(pictVar; pictWidth; pictHeight; pixelDepth; hRes; vRes):error
pictVar Picture Picture variable
pictWidth Longint Image width in pixels
pictHeight Longint Image height in pixels
pixelDepth Longint Image depth
hRes Longint Horizontal image resolution in dots per inch (dpi)
vRes Longint Vertical image resolution in dots per inch (dpi)
error Longint Error result

Returns the properties of a 4D picture variable.

The source picture is passed in the pictVar parameter.

Image dimensions are returned in pictWidth and pictHeight, horizontal and vertical resolution in hRes and vRes and pixel depth in pixelDepth. Possible values for pixelDepth are:

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

Example

  `Get picture info
 
C_LONGINT($error)
C_PICTURE($picture)
C_LONGINT($width;$height;$depth;$hRes;$vRes)
 
$picture:=[Images]Picture
 
$error:=QPx_GetPictureInfo ($picture;$width;$height;$depth;$hRes;$vRes)
 
If ($error=qpx_noErr)
   `Work with picture info
End if

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