Contents

CMCountProfileElements

Counts the number of elements in the specified profile.

Declaration

CMError CMCountProfileElements (
   CMProfileRef prof,
   UInt32 *elementCount
);

Parameters

  • 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.

Return Value

A CMError value. See Result Codes.

Overview

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.

See Also

Accessing Profile Elements