• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
PdfColors
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public static class PdfColors

Fields

Aqua

Aqua (RGB 0, 1, 1).

Declaration
public static readonly PdfColor Aqua
Field Value
Type Description
PdfColor

Black

Black (gray 0).

Declaration
public static readonly PdfColor Black
Field Value
Type Description
PdfColor

Blue

Blue (RGB 0, 0, 1).

Declaration
public static readonly PdfColor Blue
Field Value
Type Description
PdfColor

Brown

Brown (RGB 0.65, 0.16, 0.16).

Declaration
public static readonly PdfColor Brown
Field Value
Type Description
PdfColor

Cyan

Cyan (RGB 0, 1, 1).

Declaration
public static readonly PdfColor Cyan
Field Value
Type Description
PdfColor

DarkBlue

Dark blue (RGB 0, 0, 0.5).

Declaration
public static readonly PdfColor DarkBlue
Field Value
Type Description
PdfColor

DarkGray

Dark gray (gray 0.25).

Declaration
public static readonly PdfColor DarkGray
Field Value
Type Description
PdfColor

DarkGreen

Dark green (RGB 0, 0.5, 0).

Declaration
public static readonly PdfColor DarkGreen
Field Value
Type Description
PdfColor

DarkRed

Dark red (RGB 0.5, 0, 0).

Declaration
public static readonly PdfColor DarkRed
Field Value
Type Description
PdfColor

Fuchsia

Fuchsia (RGB 1, 0, 1).

Declaration
public static readonly PdfColor Fuchsia
Field Value
Type Description
PdfColor

Gray

Gray / 50% gray (gray 0.5).

Declaration
public static readonly PdfColor Gray
Field Value
Type Description
PdfColor

Green

Green (RGB 0, 1, 0).

Declaration
public static readonly PdfColor Green
Field Value
Type Description
PdfColor

LightBlue

Light blue (RGB 0.5, 0.5, 1).

Declaration
public static readonly PdfColor LightBlue
Field Value
Type Description
PdfColor

LightGray

Light gray (gray 0.75).

Declaration
public static readonly PdfColor LightGray
Field Value
Type Description
PdfColor

LightGreen

Light green (RGB 0.5, 1, 0.5).

Declaration
public static readonly PdfColor LightGreen
Field Value
Type Description
PdfColor

LightRed

Light red (RGB 1, 0.5, 0.5).

Declaration
public static readonly PdfColor LightRed
Field Value
Type Description
PdfColor

Lime

Lime (RGB 0, 1, 0).

Declaration
public static readonly PdfColor Lime
Field Value
Type Description
PdfColor

LimeGreen

Lime green (RGB 0.2, 0.8, 0.2).

Declaration
public static readonly PdfColor LimeGreen
Field Value
Type Description
PdfColor

Magenta

Magenta (RGB 1, 0, 1).

Declaration
public static readonly PdfColor Magenta
Field Value
Type Description
PdfColor

Maroon

Maroon (RGB 0.5, 0, 0).

Declaration
public static readonly PdfColor Maroon
Field Value
Type Description
PdfColor

Navy

Navy (RGB 0, 0, 0.5).

Declaration
public static readonly PdfColor Navy
Field Value
Type Description
PdfColor

Olive

Olive (RGB 0.5, 0.5, 0).

Declaration
public static readonly PdfColor Olive
Field Value
Type Description
PdfColor

Orange

Orange (RGB 1, 0.5, 0).

Declaration
public static readonly PdfColor Orange
Field Value
Type Description
PdfColor

Pink

Pink (RGB 1, 0.75, 0.8).

Declaration
public static readonly PdfColor Pink
Field Value
Type Description
PdfColor

Purple

Purple (RGB 0.5, 0, 0.5).

Declaration
public static readonly PdfColor Purple
Field Value
Type Description
PdfColor

Red

Red (RGB 1, 0, 0).

Declaration
public static readonly PdfColor Red
Field Value
Type Description
PdfColor

Silver

Silver (gray 0.75).

Declaration
public static readonly PdfColor Silver
Field Value
Type Description
PdfColor

Teal

Teal (RGB 0, 0.5, 0.5).

Declaration
public static readonly PdfColor Teal
Field Value
Type Description
PdfColor

Transparent

Transparent (black with implied zero opacity — caller must also set opacity).

Declaration
public static readonly PdfColor Transparent
Field Value
Type Description
PdfColor

White

White (gray 1).

Declaration
public static readonly PdfColor White
Field Value
Type Description
PdfColor

Yellow

Yellow (RGB 1, 1, 0).

Declaration
public static readonly PdfColor Yellow
Field Value
Type Description
PdfColor

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
Type Name Description
int r
int g
int b
Returns
Type Description
PdfColor

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
Type Name Description
int a
int r
int g
int b
Returns
Type Description
PdfColor
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX