Class ICCBasedColorSpaceDetails
The ICCBased color space is one of the CIE-based color spaces supported in PDFs. These color spaces enable a page description to specify color values in a way that is related to human visual perception. The goal is for the same color specification to produce consistent results on different output devices, within the limitations of each device.
Currently support for this color space is limited in PdfPig. Calculations will only be based on the color space of AlternateColorSpace.
public sealed class ICCBasedColorSpaceDetails : ColorSpaceDetails
- Inheritance
-
ICCBasedColorSpaceDetails
- Inherited Members
Properties
AlternateColorSpace
An alternate color space that can be used in case the one specified in the stream data is not supported. Non-conforming readers may use this color space. The alternate color space may be any valid color space (except a Pattern color space). If this property isn't explicitly set during construction, it will assume one of the color spaces, DeviceGray, DeviceRGB or DeviceCMYK depending on whether the value of NumberOfColorComponents is 1, 3 or respectively.
Conversion of the source color values should not be performed when using the alternate color space. Color values within the range of the ICCBased color space might not be within the range of the alternate color space. In this case, the nearest values within the range of the alternate space must be substituted.
public ColorSpaceDetails AlternateColorSpace { get; }
Property Value
Metadata
An optional metadata stream that contains metadata for the color space.
public XmpMetadata Metadata { get; }
Property Value
NumberOfColorComponents
The number of color components in the color space described by the ICC profile data. This numbers shall match the number of components actually in the ICC profile. Valid values are 1, 3 and 4.
public override int NumberOfColorComponents { get; }
Property Value
Range
A list of 2 x NumberOfColorComponents numbers [min0 max0 min1 max1 ...] that specifies the minimum and maximum valid values of the corresponding color components. These values must match the information in the ICC profile. Default value: [0.0 1.0 0.0 1.0 ...].
public IReadOnlyList<double> Range { get; }
Property Value
Methods
GetColor(params double[])
public override IColor GetColor(params double[] values)
Parameters
values
double[]
Returns
GetInitializeColor()
public override IColor GetInitializeColor()