PdfColor Class

Represents an RGB color with optional alpha (transparency). Used for defining fill and stroke colors in PDF rendering

Definition

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

Constructors

PdfColor(Byte, Byte, Byte) Initializes a new instance of the PdfColor class with the specified red, green, and blue components. Alpha defaults to 1.0 (fully opaque)
PdfColor(Byte, Byte, Byte, Single) Initializes a new instance of the PdfColor class with the specified red, green, blue, and alpha components

Properties

Alpha Alpha (transparency) component of the color. Clamped between 0.0 (fully transparent) and 1.0 (fully opaque)
B Blue component of the color (0–255)
BlackBlack (0, 0, 0)
BlueBlue (0, 0, 255)
CyanCyan (0, 255, 255)
DarkGrayDark Gray (64, 64, 64)
G Green component of the color (0–255)
GrayGray (128, 128, 128)
GreenGreen (0, 255, 0)
LightGrayLight Gray (192, 192, 192)
MagentaMagenta (255, 0, 255)
OrangeOrange (255, 165, 0)
PurplePurple (128, 0, 128)
R Red component of the color (0–255)
RedRed (255, 0, 0)
WhiteWhite (255, 255, 255)
YellowYellow (255, 255, 0)

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)

See Also