PDFIndexedColorSpace¶
Namespace: O2S.Components.PDF4NET.Graphics
Defines an indexed colorspace based on a finite set of color samples.
Inheritance Object → PDFColorSpace → PDFIndexedColorSpace
Constructors¶
PDFIndexedColorSpace()¶
Initializes a new PDFIndexedColorSpace object.
Properties¶
BaseColorSpace¶
Gets or sets the base colorspace.
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.
Property Value
ColorCount¶
Gets or sets the number of colors in the color table.
Property Value
Int32
The number of colors in the color table.
ColorTable¶
Gets or sets the color table.
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.
Property Value
Type¶
Gets the colorspace type.
Property Value
PDFColorSpaceType
A PDFColorSpaceType that represents the colorspace type.