Class DeviceNColorSpaceDetails
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?)
Create a new DeviceNColorSpaceDetails.
public DeviceNColorSpaceDetails(IReadOnlyList<NameToken> names, ColorSpaceDetails alternateColorSpaceDetails, PdfFunction tintFunction, DeviceNColorSpaceDetails.DeviceNColorSpaceAttributes? attributes = null)
Parameters
names
IReadOnlyList<NameToken>alternateColorSpaceDetails
ColorSpaceDetailstintFunction
PdfFunctionattributes
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
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
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
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
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
Methods
GetColor(params double[])
public override IColor GetColor(params double[] values)
Parameters
values
double[]
Returns
GetInitializeColor()
public override IColor GetInitializeColor()