Carbon


Commands for Caller-Supplied ColorSync Data Transfer Functions

Header: CMApplication.h

enum {
    cmOpenReadSpool = 1,
    cmOpenWriteSpool = 2,
    cmReadSpool = 3,
    cmWriteSpool = 4,
    cmCloseSpool = 5
};

Constant descriptions

cmOpenReadSpool

Directs the function to begin the process of reading data.

cmOpenWriteSpool

Directs the function to begin the process of writing data.

cmReadSpool

Directs the function to read the number of bytes specified by the CMFlattenProcPtr function’s size parameter.

cmWriteSpool

Directs the function to write the number of bytes specified by the CMFlattenProcPtr function’s size parameter.

cmCloseSpool

Directs the function to complete the data transfer.

When your application calls the function CMFlattenProfile, the function Accessing Profile Elements, 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.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)