PDFCalGrayColor¶
Namespace: O2S.Components.PDF4NET.Graphics
Defines a gray color based on a calibrated gray colorspace.
Inheritance Object → PDFColor → PDFCalGrayColor
Constructors¶
PDFCalGrayColor(PDFCalGrayColorSpace)¶
Initializes a new PDFCalGrayColor object with a calibrated gray colorspace.
Parameters
colorSpace PDFCalGrayColorSpace
A calibrated gray colorspace.
Properties¶
ColorSpace¶
Gets the colorspace.
Property Value
PDFColorSpace
A PDFColorSpace that represents the colorspace of the color.
Gray¶
Gets or sets the gray component.
Property Value
Double
The gray component of this color in the range [0 1].
Methods¶
Copy()¶
Copies this color.
Returns
PDFColor
A copy of this color.
Equals(Object)¶
Determines whether the specified Object is equal to the current Object.
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.
Returns
Int32
A hash code for the current Object.