SetRenderTargetICC

Rendering, color management

Description

Selects the destination ICC profile used by page rendering

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

Intent changes retain the target profile and black-point compensation settings; unsupported profile models or unavailable CMM support keep the documented alternate-color-space behavior

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 enables black point compensation for the target transform, 0 keeps the uncompensated mapping; the argument defaults to 0 when omitted

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 re-scales every channel of the sampled transform LUT so the uncompensated device black maps to the destination black while white stays pinned; fully crushed channels are left untouched

See also

RenderPageToFile, RenderPageToStream