QPx_GetImporterFile
QPx_GetImporterFile(importerRef; importerRef):error | |||
---|---|---|---|
![]() |
importerRef | Longint | Reference to a graphics importer instance |
![]() |
imagePath | Text | Full path name to the image file |
![]() |
error | Longint | Error result |
Get the path of the file associated with a graphics importer
The graphics importer instance is specified by importerRef.
The path 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 | Create a graphics importer instance without image data |
QPx_NewImporterForFile | Create a graphics importer instance for the image stored in a file |
QPx_SetImporterFile | Assign an image file to a graphics importer |