Table of Contents

Class DeviceNColorSpaceDetails

Namespace
UglyToad.PdfPig.Graphics.Colors
Assembly
UglyToad.PdfPig.dll

DeviceN colour spaces may contain an arbitrary number of colour components. They provide greater flexibility than is possible with standard device colour spaces such as DeviceCMYK or with individual Separation colour spaces.

public sealed class DeviceNColorSpaceDetails : ColorSpaceDetails
Inheritance
DeviceNColorSpaceDetails
Inherited Members

Constructors

DeviceNColorSpaceDetails(IReadOnlyList<NameToken>, ColorSpaceDetails, PdfFunction, DeviceNColorSpaceAttributes?)

public DeviceNColorSpaceDetails(IReadOnlyList<NameToken> names, ColorSpaceDetails alternateColorSpaceDetails, PdfFunction tintFunction, DeviceNColorSpaceDetails.DeviceNColorSpaceAttributes? attributes = null)

Parameters

names IReadOnlyList<NameToken>
alternateColorSpaceDetails ColorSpaceDetails
tintFunction PdfFunction
attributes DeviceNColorSpaceDetails.DeviceNColorSpaceAttributes?

Properties

AlternateColorSpace

If the colorant name associated with a DeviceN color space does not correspond to a colorant available on the device, the application arranges for subsequent painting operations to be performed in an alternate color space. The intended colors can be approximated by colors in a device or CIE-based color space which are then rendered with the usual primary or process colorants.

public ColorSpaceDetails AlternateColorSpace { get; }

Property Value

ColorSpaceDetails

Attributes

The optional attributes parameter shall be a dictionary containing additional information about the components of colour space that conforming readers may use. Conforming readers need not use the alternateSpace and tintTransform parameters, and may instead use custom blending algorithms, along with other information provided in the attributes dictionary if present.

public DeviceNColorSpaceDetails.DeviceNColorSpaceAttributes? Attributes { get; }

Property Value

DeviceNColorSpaceDetails.DeviceNColorSpaceAttributes?

Names

Specifies name objects specifying the individual colour components. The length of the array shall determine the number of components in the DeviceN colour space.

public IReadOnlyList<NameToken> Names { get; }

Property Value

IReadOnlyList<NameToken>

Remarks

The component names shall all be different from one another, except for the name None, which may be repeated.

The special name All, used by Separation colour spaces, shall not be used.

NumberOfColorComponents

The number of components for the color space.

The 'N' in DeviceN.

public override int NumberOfColorComponents { get; }

Property Value

int

TintFunction

During subsequent painting operations, an application calls this function to transform a tint value into color component values in the alternate color space. The function is called with the tint value and must return the corresponding color component values. That is, the number of components and the interpretation of their values depend on the AlternateColorSpace.

public PdfFunction TintFunction { get; }

Property Value

PdfFunction

Methods

GetColor(params double[])

public override IColor GetColor(params double[] values)

Parameters

values double[]

Returns

IColor

GetInitializeColor()

public override IColor GetInitializeColor()

Returns

IColor