QPx_GetImporterData

QPx_GetImporterData(importerRef; importerRef):error
importerRef Longint Reference to a graphics importer instance
imageData BLOB 4th Dimension BLOB containing the image data
error Longint Error result

Get the image data associated with a graphics importer

The graphics importer instance is specified by importerRef.

The image data assigned to importerRef is returned in imageData.

If importerRef is not associated with a BLOB, or if it does not refer to an existing graphics importer instance, the qpx_paramErr error code is returned.

Example

   //Get the image data associated with the importer

C_LONGINT($error)
C_BLOB($imageData)

C_LONGINT(gQPixImporter)

$error:=QPx_GetImporterData (gQPixImporter;$imageData)

If ($error#qpx_noErr)
   
      // Handle the error
   
End if 

Related commands

QPx_NewImporter Create a graphics importer instance without image data
QPx_NewImporterForData Create a graphics importer instance for the image data stored in a BLOB
QPx_SetImporterData Assign image data from a BLOB to a graphics importer