QPix Command Reference Graphics Importers

QPx_SetImporterGraphicsMode

QPx_SetImporterGraphicsMode(importerRef; transferMode):error
importerRef Longint Reference to a graphics importer instance
transferMode Longint Transfer mode
error Longint Error result

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

QPix © Escape Information Services
Generated by QDoc 2.6 on Thu, 2 May 2002 00:50:04 +0300