### QPx_SetImporterData

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

Assigns the image data contained in a 4D BLOB to a graphics importer instance.

The graphics importer instance is specified by importerRef. The BLOB holding the image data is specified by imageData.

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

Example

``Assign image data to the importer` `` `C_LONGINT($error)` `C_TEXT($imagePath)` `C_BLOB($imageData)` `` `C_LONGINT(gQPixImporter)` `` `$imagePath:="Hard disk:images:people.gif"` `DOCUMENT TO BLOB($imagePath;$imageData)` `` `$error:=QPx_SetImporterData (gQPixImporter;$imageData)` `` `If ($error#qpx_noErr)` ``Handle the error` `End if`

Related commands

QPx_NewImporter | Creates a graphics importer instance
QPx_NewImporterForData | Creates a graphics importer instance for the image data stored in a BLOB
QPx_GetImporterData | Returns the image data associated with a graphics importer

QPix © Escape
Generated by QDoc 2.8 on Wed, Feb 17, 2010 17:44:49