Class IndexedColorSpaceDetails
An Indexed color space allows a PDF content stream to use small integers as indices into a color map or color table of arbitrary colors in some other space. A PDF consumer treats each sample value as an index into the color table and uses the color value it finds there.
public sealed class IndexedColorSpaceDetails : ColorSpaceDetails
- Inheritance
-
IndexedColorSpaceDetails
- Inherited Members
Constructors
IndexedColorSpaceDetails(ColorSpaceDetails, byte, IReadOnlyList<byte>)
Create a new IndexedColorSpaceDetails.
public IndexedColorSpaceDetails(ColorSpaceDetails baseColorSpaceDetails, byte hiVal, IReadOnlyList<byte> colorTable)
Parameters
baseColorSpaceDetails
ColorSpaceDetailshiVal
bytecolorTable
IReadOnlyList<byte>
Properties
BaseColorSpace
The base color space in which the values in the color table are to be interpreted. It can be any device or CIE-based color space or (in PDF 1.3) a Separation or DeviceN space, but not a Pattern space or another Indexed space.
public ColorSpaceDetails BaseColorSpace { get; }
Property Value
ColorTable
Provides the mapping between index values and the corresponding colors in the base color space.
public IReadOnlyList<byte> ColorTable { get; }
Property Value
HiVal
An integer that specifies the maximum valid index value. Can be no greater than 255.
public byte HiVal { get; }
Property Value
NumberOfColorComponents
public override int NumberOfColorComponents { get; }
Property Value
Methods
GetColor(params double[])
public override IColor GetColor(params double[] values)
Parameters
values
double[]
Returns
GetInitializeColor()
public override IColor GetInitializeColor()