Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 3 - ColorSync Manager Reference for Applications and Device Drivers / Constants and Data Types


Commands for Caller-Supplied ColorSync Data Transfer Functions

When your application calls the CMFlattenProfile function (page 3-82), the CMUnflattenProfile function (page 3-84), or the PostScript-related functions (page 3-158), the selected CMM--and also the ColorSync dispatcher for the CMUnflattenProfile function--calls the flatten function you supply to transform profile data. The call passes one of the command constants defined by this enumeration.

Your application provides a pointer to your ColorSync data transfer function as a parameter to the functions. The dispatcher or the CMM calls your data transfer function, passing the command in the command parameter. For more information on the flatten function, see CMFlattenProfile (page 3-82).

enum {
   openReadSpool = 1,/* start read data process */
   openWriteSpool= 2,/* start write data process */
   readSpool   = 3,  /* read specified number of bytes */
   writeSpool  = 4,  /* write specified number of bytes */
   closeSpool  = 5   /* complete data transfer process */
}; 
Enumerator descriptions

openReadSpool
Directs the function to begin the process of reading data.
openWriteSpool
Directs the function to begin the process of writing data.
readSpool
Directs the function to read the number of bytes specified by the MyColorSyncDataTransfer function's size parameter.
writeSpool
Directs the function to write the number of bytes specified by the MyColorSyncDataTransfer function's size parameter.
closeSpool
Directs the function to complete the data transfer.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996