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 / ColorSync Manager Functions
Accessing Profile Elements /


CMCountProfileElements

Counts the number of elements in the specified profile.

pascal CMError CMCountProfileElements (
 CMProfileRef prof, 
 unsigned long *elementCount);
prof
A profile reference (page 3-63) to the profile to examine.
elementCount
A pointer to an element count. On output, a one-based count of the number of elements.
function result
A result code of type CMError. See "Result Codes" (page 3-174) for a list of ColorSync-specific result codes.
DISCUSSION
Every element in the profile outside the header is counted. A profile may contain tags that are references to other elements. These tags are included in the count. For information about profiles and their tags, see "Profile Properties" in Advanced Color Imaging on the Mac OS.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996