SetFillColorICCBased

Graphics and color

Description

Selects a fill colour in an /ICCBased colour space backed by an ICC profile file

Syntax

Delphi

Function SetFillColorICCBased(Const ProfileFileName: WideString; V1, V2, V3, V4: Double): Integer;

Parameters

ProfileFileNameICC profile file; the component count follows the profile header (GRAY 1, RGB/LAB 3, CMYK 4)
V1..V4Colour components; unused trailing components are ignored

Return value

1 when the colour space was selected, 0 for a missing profile or an unsupported colour space signature

Remarks

The profile bytes are embedded as a compressed ICC stream and referenced through the page /ColorSpace resource; identical profile bytes share one resource across calls

See also

SetLineColorICCBased, LoadOutputIntentProfile