ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
ActionComponents.HSVColor Class Reference

Defines a color as its Hue, Saturation and Value properties and contains utilities to move the color to and from other color spaces such as UIColor. More...

Public Member Functions

 HSVColor ()
 Initializes a new instance of the T:ActionComponents.HSVColor class. More...
 
 HSVColor (float hue, float saturation, float value)
 Initializes a new instance of the T:ActionComponents.HSVColor class. More...
 
 HSVColor (RGBColor color)
 Initializes a new instance of the T:ActionComponents.HSVColor class. More...
 
 HSVColor (Color color)
 Initializes a new instance of the T:ActionComponents.HSVColor class. More...
 
RGBColor ToRGB ()
 Converts the current HSV color to an RGB color. More...
 
void FromRGB (RGBColor color)
 Sets the value of this HSV color from the given RGB color More...
 
Color ToRawColor ()
 Returns a Color for this HSV color More...
 
void FromRawColor (Color color)
 Sets the value of this HSV color from a UIColor More...
 

Static Public Member Functions

static RGBColor HueToRGB (float hue)
 Converts a given hue value into its Red, Green, Blue component factors More...
 

Properties

float Hue [get, set]
 Gets or sets the hue. More...
 
float Saturation [get, set]
 Gets or sets the saturation. More...
 
float Value [get, set]
 Gets or sets the value (brightness). More...
 
RGBColor RGB [get, set]
 Gets or sets the RGB color for this HSV color More...
 
Color RawColor [get, set]
 Gets or sets the color. More...
 

Detailed Description

Defines a color as its Hue, Saturation and Value properties and contains utilities to move the color to and from other color spaces such as UIColor.

Constructor & Destructor Documentation

ActionComponents.HSVColor.HSVColor ( )

Initializes a new instance of the T:ActionComponents.HSVColor class.

ActionComponents.HSVColor.HSVColor ( float  hue,
float  saturation,
float  value 
)

Initializes a new instance of the T:ActionComponents.HSVColor class.

Parameters
hueHue.
saturationSaturation.
valueValue.
ActionComponents.HSVColor.HSVColor ( RGBColor  color)

Initializes a new instance of the T:ActionComponents.HSVColor class.

Parameters
colorColor.

Here is the call graph for this function:

ActionComponents.HSVColor.HSVColor ( Color  color)

Initializes a new instance of the T:ActionComponents.HSVColor class.

Parameters
colorColor.

Here is the call graph for this function:

Member Function Documentation

void ActionComponents.HSVColor.FromRawColor ( Color  color)

Sets the value of this HSV color from a UIColor

Parameters
colorColor.

Here is the caller graph for this function:

void ActionComponents.HSVColor.FromRGB ( RGBColor  color)

Sets the value of this HSV color from the given RGB color

Parameters
colorColor.

Here is the call graph for this function:

Here is the caller graph for this function:

static RGBColor ActionComponents.HSVColor.HueToRGB ( float  hue)
static

Converts a given hue value into its Red, Green, Blue component factors

Returns
The to RG.
Parameters
hueHue.

Here is the caller graph for this function:

Color ActionComponents.HSVColor.ToRawColor ( )

Returns a Color for this HSV color

Returns
The user interface color.
RGBColor ActionComponents.HSVColor.ToRGB ( )

Converts the current HSV color to an RGB color.

Returns
The RGB.

Here is the call graph for this function:

Here is the caller graph for this function:

Property Documentation

float ActionComponents.HSVColor.Hue
getset

Gets or sets the hue.

The hue.

Color ActionComponents.HSVColor.RawColor
getset

Gets or sets the color.

The color.

RGBColor ActionComponents.HSVColor.RGB
getset

Gets or sets the RGB color for this HSV color

The RGB.

float ActionComponents.HSVColor.Saturation
getset

Gets or sets the saturation.

The saturation.

float ActionComponents.HSVColor.Value
getset

Gets or sets the value (brightness).

The value.