C# Class LongoMatch.Core.Common.Color

Show file Open project: GNOME/longomatch Class Usage Examples

Public Properties

Property Type Description
Black Color
Blue Color
Blue1 Color
Green Color
Green1 Color
Grey1 Color
Grey2 Color
Red Color
Red1 Color
White Color
Yellow Color

Public Methods

Method Description
ByteToUShort ( byte val ) : ushort
Color ( byte r, byte g, byte b, byte a = byte.MaxValue ) : System
ColorFromUShort ( ushort r, ushort g, ushort b, ushort a = ushort.MaxValue ) : Color
Copy ( ) : Color
Equals ( object obj ) : bool
GetHashCode ( ) : int
Parse ( string colorHex ) : Color
ToRGBString ( bool with_alpha ) : string
ToString ( ) : string
UShortToByte ( ushort val ) : byte

Method Details

ByteToUShort() public static method

public static ByteToUShort ( byte val ) : ushort
val byte
return ushort

Color() public method

public Color ( byte r, byte g, byte b, byte a = byte.MaxValue ) : System
r byte
g byte
b byte
a byte
return System

ColorFromUShort() public static method

public static ColorFromUShort ( ushort r, ushort g, ushort b, ushort a = ushort.MaxValue ) : Color
r ushort
g ushort
b ushort
a ushort
return Color

Copy() public method

public Copy ( ) : Color
return Color

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

Parse() public static method

public static Parse ( string colorHex ) : Color
colorHex string
return Color

ToRGBString() public method

public ToRGBString ( bool with_alpha ) : string
with_alpha bool
return string

ToString() public method

public ToString ( ) : string
return string

UShortToByte() public static method

public static UShortToByte ( ushort val ) : byte
val ushort
return byte

Property Details

Black public static property

public static Color Black
return Color

Blue public static property

public static Color Blue
return Color

Blue1 public static property

public static Color Blue1
return Color

Green public static property

public static Color Green
return Color

Green1 public static property

public static Color Green1
return Color

Grey1 public static property

public static Color Grey1
return Color

Grey2 public static property

public static Color Grey2
return Color

Red public static property

public static Color Red
return Color

Red1 public static property

public static Color Red1
return Color

White public static property

public static Color White
return Color

Yellow public static property

public static Color Yellow
return Color