C# Class ThingM.Blink1.ColorProcessor.HtmlHexadecimal

HTML Color in a hexadecimal (#FFFFFF) format.
Inheritance: IColorProcessor
Mostra file Open project: todbot/blink1

Public Methods

Method Description
HtmlHexadecimal ( string htmlColor ) : System

Initializes a new instance of the HtmlHexadecimal class.

ToRgb ( ) : ThingM.Blink1.ColorProcessor.Rgb

Convert the color to the RGB format.

Private Methods

Method Description
IsFormatValid ( string color ) : bool

Validate if the string format match the HTML hexadecimal #FFFFFF format.

Method Details

HtmlHexadecimal() public method

Initializes a new instance of the HtmlHexadecimal class.
public HtmlHexadecimal ( string htmlColor ) : System
htmlColor string /// The HTML color in a hexadecimal (#FFFFFF) format. ///
return System

ToRgb() public method

Convert the color to the RGB format.
public ToRgb ( ) : ThingM.Blink1.ColorProcessor.Rgb
return ThingM.Blink1.ColorProcessor.Rgb