Table of Contents

Class BaseColor

Namespace
iTextSharp.text
Assembly
iTextSharp.LGPLv2.Core.dll

Base class for Color, serves as wrapper class for System.Drawing.Color to allow extension.

public class BaseColor
Inheritance
BaseColor
Derived
Inherited Members

Constructors

BaseColor(Color)

Constructor for Color object

public BaseColor(Color color)

Parameters

color Color

a Color object

BaseColor(int)

public BaseColor(int argb)

Parameters

argb int

BaseColor(int, int, int)

Constructor for Color object.

public BaseColor(int red, int green, int blue)

Parameters

red int

The red component value for the new Color structure. Valid values are 0 through 255.

green int

The green component value for the new Color structure. Valid values are 0 through 255.

blue int

The blue component value for the new Color structure. Valid values are 0 through 255.

BaseColor(int, int, int, int)

Constructor for Color object.

public BaseColor(int red, int green, int blue, int alpha)

Parameters

red int

The red component value for the new Color structure. Valid values are 0 through 255.

green int

The green component value for the new Color structure. Valid values are 0 through 255.

blue int

The blue component value for the new Color structure. Valid values are 0 through 255.

alpha int

The transparency component value for the new Color structure. Valid values are 0 through 255.

BaseColor(float, float, float)

Constructor for Color object

public BaseColor(float red, float green, float blue)

Parameters

red float

The red component value for the new Color structure. Valid values are 0 through 1.

green float

The green component value for the new Color structure. Valid values are 0 through 1.

blue float

The blue component value for the new Color structure. Valid values are 0 through 1.

BaseColor(float, float, float, float)

Constructor for Color object

public BaseColor(float red, float green, float blue, float alpha)

Parameters

red float

The red component value for the new Color structure. Valid values are 0 through 1.

green float

The green component value for the new Color structure. Valid values are 0 through 1.

blue float

The blue component value for the new Color structure. Valid values are 0 through 1.

alpha float

The transparency component value for the new Color structure. Valid values are 0 through 1.

Fields

Black

public static readonly BaseColor Black

Field Value

BaseColor

Blue

public static readonly BaseColor Blue

Field Value

BaseColor

Cyan

public static readonly BaseColor Cyan

Field Value

BaseColor

DarkGray

public static readonly BaseColor DarkGray

Field Value

BaseColor

Gray

public static readonly BaseColor Gray

Field Value

BaseColor

Green

public static readonly BaseColor Green

Field Value

BaseColor

LightGray

public static readonly BaseColor LightGray

Field Value

BaseColor

Magenta

public static readonly BaseColor Magenta

Field Value

BaseColor

Orange

public static readonly BaseColor Orange

Field Value

BaseColor

Pink

public static readonly BaseColor Pink

Field Value

BaseColor

Red

public static readonly BaseColor Red

Field Value

BaseColor

White

public static readonly BaseColor White

Field Value

BaseColor

Yellow

public static readonly BaseColor Yellow

Field Value

BaseColor

Properties

B

Gets the blue component value of this System.Drawing.Color structure.

public int B { get; }

Property Value

int

The blue component value of this System.Drawing.Color structure.

G

Gets the green component value of this System.Drawing.Color structure.

public int G { get; }

Property Value

int

The green component value of this System.Drawing.Color structure.

R

Gets the red component value of this System.Drawing.Color structure.

public int R { get; }

Property Value

int

The red component value of this System.Drawing.Color structure.

Methods

Brighter()

public BaseColor Brighter()

Returns

BaseColor

Darker()

public BaseColor Darker()

Returns

BaseColor

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToArgb()

public int ToArgb()

Returns

int