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
Colora 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
intThe red component value for the new Color structure. Valid values are 0 through 255.
green
intThe green component value for the new Color structure. Valid values are 0 through 255.
blue
intThe 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
intThe red component value for the new Color structure. Valid values are 0 through 255.
green
intThe green component value for the new Color structure. Valid values are 0 through 255.
blue
intThe blue component value for the new Color structure. Valid values are 0 through 255.
alpha
intThe 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
floatThe red component value for the new Color structure. Valid values are 0 through 1.
green
floatThe green component value for the new Color structure. Valid values are 0 through 1.
blue
floatThe 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
floatThe red component value for the new Color structure. Valid values are 0 through 1.
green
floatThe green component value for the new Color structure. Valid values are 0 through 1.
blue
floatThe blue component value for the new Color structure. Valid values are 0 through 1.
alpha
floatThe transparency component value for the new Color structure. Valid values are 0 through 1.
Fields
Black
public static readonly BaseColor Black
Field Value
Blue
public static readonly BaseColor Blue
Field Value
Cyan
public static readonly BaseColor Cyan
Field Value
DarkGray
public static readonly BaseColor DarkGray
Field Value
Gray
public static readonly BaseColor Gray
Field Value
Green
public static readonly BaseColor Green
Field Value
LightGray
public static readonly BaseColor LightGray
Field Value
Magenta
public static readonly BaseColor Magenta
Field Value
Orange
public static readonly BaseColor Orange
Field Value
Pink
public static readonly BaseColor Pink
Field Value
Red
public static readonly BaseColor Red
Field Value
White
public static readonly BaseColor White
Field Value
Yellow
public static readonly BaseColor Yellow
Field Value
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
Darker()
public BaseColor Darker()
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToArgb()
public int ToArgb()