C# Class Praeclarum.Graphics.Color

显示文件 Open project: praeclarum/Praeclarum

Public Properties

Property Type Description
Red int
Tag object

Public Methods

Method Description
AreEqual ( Color a, Color b ) : bool
Color ( int red, int green, int blue ) : System
Color ( int red, int green, int blue, int alpha ) : System
Equals ( object obj ) : bool
FromArgb ( int a, int r, int g, int b ) : Color
FromRgb ( int r, int g, int b ) : Color
FromWhite ( float white, float alpha ) : Color
GetHashCode ( ) : int
GetInvertedColor ( ) : Color
ToArgb ( ) : int
ToString ( ) : string
WithAlpha ( int aa ) : Color
WithAlphaValue ( float a ) : Color

Private Methods

Method Description
ByteFromFloat ( float v ) : byte
ByteFromInt ( int v ) : byte

Method Details

AreEqual() public static method

public static AreEqual ( Color a, Color b ) : bool
a Color
b Color
return bool

Color() public method

public Color ( int red, int green, int blue ) : System
red int
green int
blue int
return System

Color() public method

public Color ( int red, int green, int blue, int alpha ) : System
red int
green int
blue int
alpha int
return System

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FromArgb() public static method

public static FromArgb ( int a, int r, int g, int b ) : Color
a int
r int
g int
b int
return Color

FromRgb() public static method

public static FromRgb ( int r, int g, int b ) : Color
r int
g int
b int
return Color

FromWhite() public static method

public static FromWhite ( float white, float alpha ) : Color
white float
alpha float
return Color

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetInvertedColor() public method

public GetInvertedColor ( ) : Color
return Color

ToArgb() public method

public ToArgb ( ) : int
return int

ToString() public method

public ToString ( ) : string
return string

WithAlpha() public method

public WithAlpha ( int aa ) : Color
aa int
return Color

WithAlphaValue() public method

public WithAlphaValue ( float a ) : Color
a float
return Color

Property Details

Red public_oe property

public int Red
return int

Tag public_oe property

public object Tag
return object