ParseICCProfileHeader

Compliance, colour management

Description

Parses the ICC header of a raw profile into the TPDFICCProfileInfo record

The same record shape is returned by GetOutputIntentICCInfo for embedded output intents

Syntax

Delphi

Function ParseICCProfileHeader(Const Profile: AnsiString; Out Info: TPDFICCProfileInfo): Boolean;

Parameters

ProfileComplete ICC profile bytes; the header prefix is read
InfoReceives the decoded header fields including colour space, component count, ICC version and class

Return values

FalseThe profile is shorter than a header or the signature is not acsp
TrueInfo holds the decoded header fields

See also

ICCProfileComponents, DefaultRGBProfile, TPDFICCProfileInfo, GetOutputIntentICCInfo