SetRenderTargetICC

Rendering, colour management

Description

Selects the destination ICC profile used by page rendering

On non-Windows platforms, native ICC display transforms for sources with one to eight components, nCLR included, use LittleCMS 2 when it is available, and a non-RGB destination profile is proofed by converting into it and back out to sRGB; see ICC component transforms for dependencies, channel conversion and bounded-input behaviour

Changing the intent keeps the target profile and black-point compensation settings; profile models that are not supported, or missing CMM support, fall back to the documented alternate-colour-space behaviour

Syntax

Delphi

Function TPDFlib.SetRenderTargetICC(Const ICCData: AnsiString): Integer;

Parameters

ICCDataThe complete ICC profile bytes, or an empty string to restore the default sRGB target
BlackPointCompensation1 turns on black point compensation for the target transform, 0 keeps the uncompensated mapping; when omitted the argument defaults to 0

Return values

1The target was updated
0The profile header was invalid

Remarks

The target applies to subsequent page rendering and supports soft proofing or gamut preview

The raster output remains RGB even when the destination profile describes another device space

Black point compensation rescales every channel of the sampled transform LUT so that uncompensated device black lands on the destination black whilst white stays pinned; channels that are fully crushed are left alone

See also

RenderPageToFile, RenderPageToStream