Skip to content

PDFIndexedColorSpace

Namespace: O2S.Components.PDF4NET.Graphics

Defines an indexed colorspace based on a finite set of color samples.

public class PDFIndexedColorSpace : PDFColorSpace

Inheritance ObjectPDFColorSpacePDFIndexedColorSpace

Constructors

PDFIndexedColorSpace()

Initializes a new PDFIndexedColorSpace object.

public PDFIndexedColorSpace()

Properties

BaseColorSpace

Gets or sets the base colorspace.

public PDFColorSpace BaseColorSpace { get; set; }

Property Value

PDFColorSpace
The base color space in which the values in the color table are to be interpreted.


ColorComponentCount

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

public int ColorComponentCount { get; }

Property Value

Int32


ColorCount

Gets or sets the number of colors in the color table.

public int ColorCount { get; set; }

Property Value

Int32
The number of colors in the color table.


ColorTable

Gets or sets the color table.

public Byte[] ColorTable { get; set; }

Property Value

Byte[]
The table of color components.

Remarks

The color table data must be m * ColorCount bytes long, where m is the number of color components in the base color space. Each byte is an unsigned integer in the range 0 to 255 that is scaled to the range of the corresponding color component in the base color space; that is, 0 corresponds to the minimum value in the range for that component, and 255 corresponds to the maximum.


CosObject

Gets the raw colorspace object.

public PDFCosObject CosObject { get; }

Property Value

PDFCosObject


Type

Gets the colorspace type.

public PDFColorSpaceType Type { get; }

Property Value

PDFColorSpaceType
A PDFColorSpaceType that represents the colorspace type.


Methods