PdfColor Class

The PDF color class

Definition

Namespace: HiQPdf
Assembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 16.0.0
C#
public class PdfColor
Inheritance
Object    PdfColor

Constructors

PdfColor Constructs a PDF color object having all components set to 0
PdfColor(Color) Constructs a PDF color object with the given system color
PdfColor(Byte, Byte, Byte) Constructs a PDF color with the given RGB components as integer values between 0 and 255
PdfColor(Byte, Byte, Byte, Byte) Constructs a PDF color with the given ARGB components as integer values between 0 and 255
PdfColor(Single, Single, Single, Single) Constructs a PDF color with the given CMYK components as real values between 0 and 1

Properties

A The alpha component of the color in RGB color model
B The blue component of the color in RGB color model
C The cyan component of the color in CMYK color model
G The green component of the color in RGB color model
K The black component of the color in CMYK color model
M The magenta component of the color in CMYK color model
R The red component of the color in RGB color model
Y The yellow component of the color in CMYK color model

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) This operator will implicitly convert a system color to a PDF color
(PdfColor to Color) Converts a PDF color to a system color

See Also