C# Class Core2D.Style.ArgbColor

Color definition using alpha, red, green and blue channels.
Inheritance: ObservableObject
Mostra file Open project: Core2D/Core2D Class Usage Examples

Public Methods

Method Description
Clone ( ) : ArgbColor

Clones color.

Create ( byte a = 0xFF, byte r = 0x00, byte g = 0x00, byte b = 0x00 ) : ArgbColor

Creates a new ArgbColor instance.

FromUInt32 ( uint value ) : ArgbColor

Creates a ArgbColor from an integer.

Parse ( string s ) : ArgbColor

Parses a color string.

ToHtml ( ArgbColor c ) : string

Converts a color to string.

Method Details

Clone() public method

Clones color.
public Clone ( ) : ArgbColor
return ArgbColor

Create() public static method

Creates a new ArgbColor instance.
public static Create ( byte a = 0xFF, byte r = 0x00, byte g = 0x00, byte b = 0x00 ) : ArgbColor
a byte The alpha color channel.
r byte The red color channel.
g byte The green color channel.
b byte The blue color channel.
return ArgbColor

FromUInt32() public static method

Creates a ArgbColor from an integer.
public static FromUInt32 ( uint value ) : ArgbColor
value uint The integer value.
return ArgbColor

Parse() public static method

Parses a color string.
public static Parse ( string s ) : ArgbColor
s string The color string.
return ArgbColor

ToHtml() public static method

Converts a color to string.
public static ToHtml ( ArgbColor c ) : string
c ArgbColor The color instance.
return string