QPix Command Reference
Graphics Importers
|
|
| QPx_GetImporterGraphicsMode(importerRef; transferMode):error | |||
|
|
importerRef | Longint | Reference to a graphics importer instance |
|
|
transferMode | Longint | Transfer mode |
|
|
error | Longint | Error result |
Returns the current transfer mode property of a graphics importer instance.
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 value for the importer's current transfer mode is returned in transferMode. Possible values are:
| qpx_SrcCopy | 0 | Source copy |
| qpx_DitherCopy | 64 | Dither copy |
Note: For a detailed discussion of QuickDraw transfer modes, see Inside Macintosh - Imaging with QuickDraw.
Example
`Get transfer mode C_LONGINT($error)C_LONGINT($transferMode) C_LONGINT(gQPixImporter) $error:=QPx_GetImporterGraphicsMode (gQPixImporter;$transferMode) If ($error#qpx_noErr) `Handle the errorEnd if |