Carbon


CMCountProfileElements

Header: CMApplication.h Carbon status: Supported

Counts the number of elements in the specified profile.

CMError CMCountProfileElements (
    CMProfileRef prof, 
    UInt32 *elementCount
);
Parameter descriptions
prof

A profile reference of type CMProfileRef to the profile to examine.

elementCount

A pointer to an element count. On return, a one-based count of the number of elements.

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.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when ColorSync 2.0 or later is present.


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