C# Class PsHandler.ColorPicker.ColorARGBHSV

Exibir arquivo Open project: kampiuceris/PsHandler Class Usage Examples

Public Properties

Property Type Description
RegexColorHex System.Text.RegularExpressions.Regex

Public Methods

Method Description
ColorARGBHSV ( byte r, byte g, byte b, byte a = 255 ) : System
ColorARGBHSV ( double h, double s, double v, byte a = 255 ) : System
FromStringHex ( string stringHex ) : ColorARGBHSV
HSVtoRGB ( double h, double s, double v, byte &r, byte &g, byte &b ) : void
RGBtoHSV ( byte r, byte g, byte b, double &h, double &s, double &v ) : void
SetARGB ( byte a, byte r, byte g, byte b ) : void
SetHSV ( double h, double s, double v ) : void
SetRGB ( byte r, byte g, byte b ) : void
ToString ( ) : string
ToStringHex ( System colorMedia ) : string
ToStringHex ( byte a, byte r, byte g, byte b ) : string

Private Methods

Method Description
GetHue ( byte red, byte green, byte blue ) : double

Method Details

ColorARGBHSV() public method

public ColorARGBHSV ( byte r, byte g, byte b, byte a = 255 ) : System
r byte
g byte
b byte
a byte
return System

ColorARGBHSV() public method

public ColorARGBHSV ( double h, double s, double v, byte a = 255 ) : System
h double
s double
v double
a byte
return System

FromStringHex() public static method

public static FromStringHex ( string stringHex ) : ColorARGBHSV
stringHex string
return ColorARGBHSV

HSVtoRGB() public static method

public static HSVtoRGB ( double h, double s, double v, byte &r, byte &g, byte &b ) : void
h double
s double
v double
r byte
g byte
b byte
return void

RGBtoHSV() public static method

public static RGBtoHSV ( byte r, byte g, byte b, double &h, double &s, double &v ) : void
r byte
g byte
b byte
h double
s double
v double
return void

SetARGB() public method

public SetARGB ( byte a, byte r, byte g, byte b ) : void
a byte
r byte
g byte
b byte
return void

SetHSV() public method

public SetHSV ( double h, double s, double v ) : void
h double
s double
v double
return void

SetRGB() public method

public SetRGB ( byte r, byte g, byte b ) : void
r byte
g byte
b byte
return void

ToString() public method

public ToString ( ) : string
return string

ToStringHex() public static method

public static ToStringHex ( System colorMedia ) : string
colorMedia System
return string

ToStringHex() public static method

public static ToStringHex ( byte a, byte r, byte g, byte b ) : string
a byte
r byte
g byte
b byte
return string

Property Details

RegexColorHex public_oe static_oe property

public static Regex,System.Text.RegularExpressions RegexColorHex
return System.Text.RegularExpressions.Regex