PATHMac OS 8 Developer Documentation > Mutlimedia and Graphics > ColorSync Manager >

Managing Color With ColorSync


Commands for Caller-Supplied ColorSync Data Transfer Functions

When your application calls the function CMFlattenProfile , the function CMUnflattenProfile , or the PostScript-related functions of type Color-Matching With PostScript Devices , the selected CMM--or, for the CMUnflattenProfile function, the ColorSync Manager--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 ColorSync Manager or the CMM calls your data transfer function, passing the command in the command parameter. For more information on the flatten function, see CMFlattenProfile .

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.

© 1988-1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)