Skip to content

PDFIccColor

Namespace: O2S.Components.PDF4NET.Graphics

Defines an ICC color based on an ICC colorspace.

public class PDFIccColor : PDFColor

Inheritance ObjectPDFColorPDFIccColor

Constructors

PDFIccColor(PDFIccColorSpace)

Initializes a new PDFIccColor object with an ICC colorspace.

public PDFIccColor(PDFIccColorSpace colorSpace)

Parameters

colorSpace PDFIccColorSpace
The ICC colorspace.


Properties

ColorComponents

Gets or sets the color components.

public Double[] ColorComponents { get; set; }

Property Value

Double[]
An array of numbers, one for each color component.

Remarks

The number of color components must be equal to the value of PDFIccColorSpace.ColorComponents property on the ICC colorspace.


ColorSpace

Gets the colorspace.

public PDFColorSpace ColorSpace { get; }

Property Value

PDFColorSpace
A PDFColorSpace that represents the colorspace of the color.


Methods

Copy()

Copies this color.

public PDFColor Copy()

Returns

PDFColor
A copy of this color.


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

Serves as a hash function for a particular type.

public int GetHashCode()

Returns

Int32
A hash code for the current Object.