Table of Contents

Class ColorSpaceDetails

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

Contains more document-specific information about the ColorSpace.

public abstract class ColorSpaceDetails
Inheritance
ColorSpaceDetails
Derived
Inherited Members

Constructors

ColorSpaceDetails(ColorSpace)

Create a new ColorSpaceDetails.

protected ColorSpaceDetails(ColorSpace type)

Parameters

type ColorSpace

Properties

BaseType

The underlying type of ColorSpace, usually equal to Type unless Indexed or DeviceN.

public ColorSpace BaseType { get; protected set; }

Property Value

ColorSpace

NumberOfColorComponents

The number of components for the color space.

public abstract int NumberOfColorComponents { get; }

Property Value

int

Type

The type of the ColorSpace.

public ColorSpace Type { get; }

Property Value

ColorSpace

Methods

ConvertToByte(double)

Convert to byte.

protected static byte ConvertToByte(double componentValue)

Parameters

componentValue double

Returns

byte

GetColor(params double[])

Get the color.

public abstract IColor GetColor(params double[] values)

Parameters

values double[]

Returns

IColor

GetInitializeColor()

Get the color that initialize the current stroking or nonstroking colour.

public abstract IColor GetInitializeColor()

Returns

IColor