C# Class System.Drawing.Color

Show file Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
Empty Color
Empty System.Drawing.Color

Private Properties

Property Type Description
CheckByte void
Color System.Diagnostics
Color System.Diagnostics
MakeArgb long

Public Methods

Method Description
Equals ( object obj ) : bool
FromArgb ( int argb ) : Color
FromArgb ( int alpha, Color baseColor ) : Color
FromArgb ( int red, int green, int blue ) : Color
FromArgb ( int alpha, int red, int green, int blue ) : Color
FromArgb ( int argb ) : System.Drawing.Color
FromArgb ( int alpha, System baseColor ) : System.Drawing.Color
FromArgb ( int red, int green, int blue ) : System.Drawing.Color
FromArgb ( int alpha, int red, int green, int blue ) : System.Drawing.Color
FromKnownColor ( KnownColor color ) : Color
FromKnownColor ( System color ) : System.Drawing.Color
FromName ( string name ) : Color
FromName ( string name ) : System.Drawing.Color
GetBrightness ( ) : float
GetHashCode ( ) : int
GetHue ( ) : Single
GetHue ( ) : float
GetSaturation ( ) : float
ToArgb ( ) : int
ToKnownColor ( ) : KnownColor
ToKnownColor ( ) : System.Drawing.KnownColor
ToString ( ) : string
operator ( ) : bool

Private Methods

Method Description
CheckByte ( int value, string name ) : void
Color ( KnownColor knownColor ) : System.Diagnostics
Color ( long value, short state, string name, KnownColor knownColor ) : System.Diagnostics
MakeArgb ( byte alpha, byte red, byte green, byte blue ) : long

Method Details

Equals() public method

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

FromArgb() public static method

public static FromArgb ( int argb ) : Color
argb int
return Color

FromArgb() public static method

public static FromArgb ( int alpha, Color baseColor ) : Color
alpha int
baseColor Color
return Color

FromArgb() public static method

public static FromArgb ( int red, int green, int blue ) : Color
red int
green int
blue int
return Color

FromArgb() public static method

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

FromArgb() public static method

public static FromArgb ( int argb ) : System.Drawing.Color
argb int
return System.Drawing.Color

FromArgb() public static method

public static FromArgb ( int alpha, System baseColor ) : System.Drawing.Color
alpha int
baseColor System
return System.Drawing.Color

FromArgb() public static method

public static FromArgb ( int red, int green, int blue ) : System.Drawing.Color
red int
green int
blue int
return System.Drawing.Color

FromArgb() public static method

public static FromArgb ( int alpha, int red, int green, int blue ) : System.Drawing.Color
alpha int
red int
green int
blue int
return System.Drawing.Color

FromKnownColor() public static method

public static FromKnownColor ( KnownColor color ) : Color
color KnownColor
return Color

FromKnownColor() public static method

public static FromKnownColor ( System color ) : System.Drawing.Color
color System
return System.Drawing.Color

FromName() public static method

public static FromName ( string name ) : Color
name string
return Color

FromName() public static method

public static FromName ( string name ) : System.Drawing.Color
name string
return System.Drawing.Color

GetBrightness() public method

public GetBrightness ( ) : float
return float

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetHue() public method

public GetHue ( ) : Single
return Single

GetHue() public method

public GetHue ( ) : float
return float

GetSaturation() public method

public GetSaturation ( ) : float
return float

ToArgb() public method

public ToArgb ( ) : int
return int

ToKnownColor() public method

public ToKnownColor ( ) : KnownColor
return KnownColor

ToKnownColor() public method

public ToKnownColor ( ) : System.Drawing.KnownColor
return System.Drawing.KnownColor

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Empty public static property

public static Color,System.Drawing Empty
return Color

Empty public static property

public static System.Drawing.Color Empty
return System.Drawing.Color