Skip to content

PDFCalRgbColor

Namespace: O2S.Components.PDF4NET.Graphics

Defines a RGB color based on a calibrated RGB colorspace.

public class PDFCalRgbColor : PDFColor

Inheritance ObjectPDFColorPDFCalRgbColor

Constructors

PDFCalRgbColor(PDFCalRgbColorSpace)

Initializes a new PDFCalRgbColor object with a calibrated RGB colorspace.

public PDFCalRgbColor(PDFCalRgbColorSpace colorSpace)

Parameters

colorSpace PDFCalRgbColorSpace
A calibrated RGB colorspace.


Properties

Blue

Gets or sets the blue component.

public double Blue { get; set; }

Property Value

Double
The blue component in the range [0 1].


ColorSpace

Gets the colorspace.

public PDFColorSpace ColorSpace { get; }

Property Value

PDFColorSpace
A PDFColorSpace that represents the colorspace of the color.


Green

Gets or sets the green component.

public double Green { get; set; }

Property Value

Double
The green component in the range [0 1].


Red

Gets or sets the red component.

public double Red { get; set; }

Property Value

Double
The red component in the range [0 1].


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.