### QPx_GetImporterFile

QPx_GetImporterFile(importerRef; imagePath):error
| importerRef | Longint | Reference to a graphics importer instance
| imagePath | Text | Full path name to the image file
| error | Longint | Error result

Returns the pathname of the file associated with the graphics importer instance.

The graphics importer instance is specified by importerRef. The pathname of the image file assigned to importerRef is returned in imagePath.

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

Example

``Get the full pathname of the image file associated with the importer` `` `C_LONGINT($error)` `C_TEXT($imagePath)` `` `C_LONGINT(gQPixImporter)` `` `$error:=QPx_GetImporterFile (gQPixImporter;$imagePath)` `` `If ($error#qpx_noErr)` ``Handle the error` `End if`

Related commands

QPx_NewImporter | Creates a graphics importer instance
QPx_NewImporterForFile | Creates a graphics importer instance for the image stored in a file
QPx_SetImporterFile | Assigns an image file to a graphics importer

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