QPix Command Reference Graphics Importers |

### QPx_ReadImporterImageInPict

QPx_ReadImporterImageInPict(importerRef; imagePict):error
| importerRef | Longint | Reference to a graphics importer instance
| imagePict | Picture | 4D picture variable
| error | Longint | Error result

Reads the image associated with a graphics importer instance into a 4D picture variable.

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.

The image associated with importerRef will be returned in imagePict.

Warning! Graphics files can be very big depending on image dimensions, resolution and pixel depth. If you read image files in 4D pictures you should make sure to have enough memory available to your application. Running low on memory may lead to crashes and data loss.

Example

``Get image in 4D picture` `` `C_LONGINT($error)` `C_PICTURE($pict)` `` `C_LONGINT(gQPixImporter)` `` `$error:=QPx_ReadImporterImageInPict (gQPixImporter;$pict)` `` `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:05 +0300