CreateDeviceNColorSpace(IReadOnlyList, IReadOnlyList) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Creates a DeviceN colour space whose colourants look like alternateColors at full tint, or returns the one this document already has for the same values.

public PdfDeviceNColorSpace CreateDeviceNColorSpace(IReadOnlyList<string> colorants, IReadOnlyList<PdfColor> alternateColors)

Parameters

colorants
IReadOnlyList<String>

The colourants' names, in component order: different from each other except None; 1 to 32 of them.

alternateColors
IReadOnlyList<PdfColor>

For each colourant, the colour its full tint is shown as where it is not available; all in one space, which is the alternate: a device space, CalGray, CalRGB or a gray, RGB or CMYK ICCBased space.

Returns

PdfDeviceNColorSpace
The space: [/DeviceN [names] alternate tintTransform], an indirect array.

Remarks

ISO 32000-2 §8.6.6.5 (PDF 1.3). The tint transform is written as a PostScript calculator function (§7.10.5, Type 4, PDF 1.3) that mixes the colourants' alternate colours: for CMYK, each component is the sum of the tints times the colourants' components, at most 1; for an additive alternate, 1 minus the sum of the tints times what each colourant takes away from white, at least 0. Records PDF 1.3. A mutation.