Table of Contents

Class IndexedColorSpaceDetails

Namespace
UglyToad.PdfPig.Graphics.Colors
Assembly
UglyToad.PdfPig.dll

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>)

public IndexedColorSpaceDetails(ColorSpaceDetails baseColorSpaceDetails, byte hiVal, IReadOnlyList<byte> colorTable)

Parameters

baseColorSpaceDetails ColorSpaceDetails
hiVal byte
colorTable 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

ColorSpaceDetails

ColorTable

Provides the mapping between index values and the corresponding colors in the base color space.

public IReadOnlyList<byte> ColorTable { get; }

Property Value

IReadOnlyList<byte>

HiVal

An integer that specifies the maximum valid index value. Can be no greater than 255.

public byte HiVal { get; }

Property Value

byte

NumberOfColorComponents

public override int NumberOfColorComponents { get; }

Property Value

int

Methods

GetColor(params double[])

public override IColor GetColor(params double[] values)

Parameters

values double[]

Returns

IColor

GetInitializeColor()

public override IColor GetInitializeColor()

Returns

IColor