QPix Command Reference
![]() |
![]() ![]() |
QPxObs_SetImporterGraphicsMode(importerRef; transferMode):error | |||
![]() |
importerRef | Longint | Reference to a graphics importer instance |
![]() |
transferMode | Longint | Transfer mode |
![]() |
error | Longint | Error result |
This command is preserved in QPix v3 for backward compatibility reasons. The graphics importer transfer mode has no meaning in QPix v3 and later.
Sets the transfer mode property of a graphics importer instance. This will be used by the importer when drawing the image in a QPix plug-in area or in thumbnails.
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.
By default, when an importer instance is created, its transfer mode is set to 64, which means dither copy is on. QPix defines the following constants that can be passed in the transferMode parameter:
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
`Turn dithering off C_LONGINT($error) C_LONGINT(gQPixImporter) $error:=QPx_SetImporterGraphicsMode (gQPixImporter;qpx_SrcCopy) If ($error#qpx_noErr) `Handle the error End if |