Class PdfColors
A catalog of predefined PdfColor values, mirroring the
named colors available in System.Drawing.Color.
All values are RGB with channels in the range 0.0–1.0.
Assembly: DRIT.Pdf.dll
Syntax
public static class PdfColors
Fields
Aqua
Declaration
public static readonly PdfColor Aqua
Field Value
Black
Declaration
public static readonly PdfColor Black
Field Value
Blue
Declaration
public static readonly PdfColor Blue
Field Value
Brown
Brown (RGB 0.65, 0.16, 0.16).
Declaration
public static readonly PdfColor Brown
Field Value
Cyan
Declaration
public static readonly PdfColor Cyan
Field Value
DarkBlue
Dark blue (RGB 0, 0, 0.5).
Declaration
public static readonly PdfColor DarkBlue
Field Value
DarkGray
Declaration
public static readonly PdfColor DarkGray
Field Value
DarkGreen
Dark green (RGB 0, 0.5, 0).
Declaration
public static readonly PdfColor DarkGreen
Field Value
DarkRed
Dark red (RGB 0.5, 0, 0).
Declaration
public static readonly PdfColor DarkRed
Field Value
Fuchsia
Declaration
public static readonly PdfColor Fuchsia
Field Value
Gray
Gray / 50% gray (gray 0.5).
Declaration
public static readonly PdfColor Gray
Field Value
Green
Declaration
public static readonly PdfColor Green
Field Value
LightBlue
Light blue (RGB 0.5, 0.5, 1).
Declaration
public static readonly PdfColor LightBlue
Field Value
LightGray
Declaration
public static readonly PdfColor LightGray
Field Value
LightGreen
Light green (RGB 0.5, 1, 0.5).
Declaration
public static readonly PdfColor LightGreen
Field Value
LightRed
Light red (RGB 1, 0.5, 0.5).
Declaration
public static readonly PdfColor LightRed
Field Value
Lime
Declaration
public static readonly PdfColor Lime
Field Value
LimeGreen
Lime green (RGB 0.2, 0.8, 0.2).
Declaration
public static readonly PdfColor LimeGreen
Field Value
Magenta
Declaration
public static readonly PdfColor Magenta
Field Value
Maroon
Declaration
public static readonly PdfColor Maroon
Field Value
Navy
Declaration
public static readonly PdfColor Navy
Field Value
Olive
Declaration
public static readonly PdfColor Olive
Field Value
Orange
Declaration
public static readonly PdfColor Orange
Field Value
Pink
Declaration
public static readonly PdfColor Pink
Field Value
Purple
Purple (RGB 0.5, 0, 0.5).
Declaration
public static readonly PdfColor Purple
Field Value
Red
Declaration
public static readonly PdfColor Red
Field Value
Silver
Declaration
public static readonly PdfColor Silver
Field Value
Teal
Declaration
public static readonly PdfColor Teal
Field Value
Transparent
Transparent (black with implied zero opacity — caller must also set opacity).
Declaration
public static readonly PdfColor Transparent
Field Value
White
Declaration
public static readonly PdfColor White
Field Value
Yellow
Declaration
public static readonly PdfColor Yellow
Field Value
Methods
FromArgb(int, int, int)
Create a color from 8-bit RGB values (0–255).
Declaration
public static PdfColor FromArgb(int r, int g, int b)
Parameters
Returns
FromArgb(int, int, int, int)
Create a color from 8-bit RGB values with alpha (alpha is informational; use opacity separately).
Declaration
public static PdfColor FromArgb(int a, int r, int g, int b)
Parameters
Returns