PdfColor Class

Represents a PDF color

Definition

Namespace: EvoPdf
Assembly: EvoHtmlToPdf_NetCore (in EvoHtmlToPdf_NetCore.dll) Version: 11.0.0
C#
public class PdfColor
Inheritance
Object    PdfColor

Constructors

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

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

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

Operators

(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