Represents a PDF color
Inheritance Hierarchy
EvoPdfPdfColor
Namespace: EvoPdf
Assembly: evohtmltopdf (in evohtmltopdf.dll) Version: 10.0.0.0
Syntax
The PdfColor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PdfColor(Color) |
Creates a PDF color object based on a .NET Color structure
| |
PdfColor(Single) |
Creates a Grayscale color based on gray level
| |
PdfColor(Byte, Byte, Byte) |
Creates a color based on RGB values. The color values are on a scale from 0 to 255.
| |
PdfColor(Single, Single, Single, Single) |
Creates a color based on GMYK values. The color values are on a scale from 0 to 1.
|
Properties
Name | Description | |
---|---|---|
Blue |
Gets or sets the value of the Blue component of this PDF color.
| |
Cyan |
Gets or sets Cyan value.
| |
Empty |
Gets a reference to an empty PDF color having all components 0.
| |
Gray |
Gets or sets Gray level.
| |
Green |
Gets or sets the value of the Green component of this PDF color.
| |
Key |
Gets or sets Black value.
| |
Magenta |
Gets sets Magenta value.
| |
Red |
Gets or sets the value of the Red component of this PDF color.
| |
Yellow |
Gets sets Yellow chanel value.
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Operators
Name | Description | |
---|---|---|
(Color to PdfColor) |
Implicit operator to convert a .NET Color structure a PDF color.
| |
(PdfColor to Color) |
Implicit operator to convert a PDF color to a .NET Color structure.
|
See Also