QPx_ReadImporterImageInPict

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

Read the image associated with an importer 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.

Example

   // Get image in a 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