Skip to content

PDFGrayColorSpace

Namespace: O2S.Components.PDF4NET.Graphics

Defines a device gray colorspace.

public class PDFGrayColorSpace : PDFColorSpace

Inheritance ObjectPDFColorSpacePDFGrayColorSpace

Constructors

PDFGrayColorSpace()

Initializes a new PDFGrayColorSpace object.

public PDFGrayColorSpace()

Properties

ColorComponentCount

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

public int ColorComponentCount { get; }

Property Value

Int32


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

Equals(Object)

Determines whether the specified Object is equal to the current Object.

public bool Equals(object obj)

Parameters

obj Object
The Object to compare with the current Object.

Returns

Boolean
true if the specified Object is equal to the current Object; otherwise, false.


GetHashCode()

Gets the object has code.

public int GetHashCode()

Returns

Int32
The object hash code.