ICCProfileComponents

Compliance, colour management

Description

Returns the colour component count of an ICC profile

A convenience wrapper that parses the header through ParseICCProfileHeader and reads the component field

Syntax

Delphi

Function ICCProfileComponents(Const Profile: AnsiString): Integer;

Parameters

ProfileComplete ICC profile bytes

Return values

N for an N-component profile such as 3 for RGB and 4 for CMYK, or 0 when the header cannot be parsed

See also

ParseICCProfileHeader, DefaultRGBProfile, TPDFICCProfileInfo