Skip to content

PDFIccColorSpace

Namespace: O2S.Components.PDF4NET.Graphics

Defines a colorspace based on an ICC profile.

public class PDFIccColorSpace : PDFColorSpace

Inheritance ObjectPDFColorSpacePDFIccColorSpace

Constructors

PDFIccColorSpace()

Initializes a new PDFIccColorSpace object.

public PDFIccColorSpace()

Properties

AlternateColorSpace

Gets or sets the alternate colorspace.

public PDFColorSpace AlternateColorSpace { get; set; }

Property Value

PDFColorSpace
An alternate color space to be used in case the one specified in the stream data is not supported.


ColorComponentCount

Gets the number of components used by a color in this colorspace.

public int ColorComponentCount { get; }

Property Value

Int32


ColorComponents

Gets or sets the number of color components.

public int ColorComponents { get; set; }

Property Value

Int32
The number of color components in the color space described by the ICC profile data.

Remarks

This number must match the number of components actually in the ICC profile. As of PDF 1.4, this value must be 1, 3 or 4.


CosObject

Gets the raw colorspace object.

public PDFCosObject CosObject { get; }

Property Value

PDFCosObject


IccProfile

Gets or sets the content of the ICC profile.

public Byte[] IccProfile { get; set; }

Property Value

Byte[]
The ICC profile content.


Range

Gets or sets the range of color components.

public Double[] Range { get; set; }

Property Value

Double[]
An array of 2 * PDFIccColorSpace.ColorComponents numbers [ min0 max0 min1 max1 ... ] specifying the minimum and maximum valid values of the corresponding color components. These values must match the information in the ICC profile.


Type

Gets the colorspace type.

public PDFColorSpaceType Type { get; }

Property Value

PDFColorSpaceType
A PDFColorSpaceType that represents the colorspace type.


Methods