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

Represents a color based on its Red, Green and Blue properties and contains the propereties and methods to convert the color to a different color space, such as UIColor. More...

Public Member Functions

 RGBColor ()
 Initializes a new instance of the ActionHSBColorPicker.RGBColor class. More...
 
 RGBColor (float red, float blue, float green)
 Initializes a new instance of the ActionHSBColorPicker.RGBColor class. More...
 
 RGBColor (HSVColor color)
 Initializes a new instance of the ActionHSBColorPicker.RGBColor class. More...
 
 RGBColor (Color color)
 Initializes a new instance of the ActionHSBColorPicker.RGBColor class. More...
 
HSVColor ToHSV (bool preserveHS)
 Tos the HS. More...
 
void FromHSV (HSVColor color)
 Sets the value of this RGB color from the give HSV color More...
 
Color ToRawColor ()
 Returns a Color for this RGB color More...
 
void FromRawColor (Color color)
 Sets the value of this RGB color from a UIColor More...
 

Properties

float Red [get, set]
 Gets or sets the red value. More...
 
float Blue [get, set]
 Gets or sets the blue value. More...
 
float Green [get, set]
 Gets or sets the green value More...
 
HSVColor HSV [get, set]
 Gets or sets the HSV color for this RGB color More...
 
Color Raw [get, set]
 Gets or sets the RGBColor as a raw Android Color. More...
 

Detailed Description

Represents a color based on its Red, Green and Blue properties and contains the propereties and methods to convert the color to a different color space, such as UIColor.

Constructor & Destructor Documentation

ActionComponents.RGBColor.RGBColor ( )

Initializes a new instance of the ActionHSBColorPicker.RGBColor class.

ActionComponents.RGBColor.RGBColor ( float  red,
float  blue,
float  green 
)

Initializes a new instance of the ActionHSBColorPicker.RGBColor class.

Parameters
redRed (0 to 1).
blueBlue (0 to 1).
greenGreen (0 to 1).
ActionComponents.RGBColor.RGBColor ( HSVColor  color)

Initializes a new instance of the ActionHSBColorPicker.RGBColor class.

Parameters
colorColor.

Here is the call graph for this function:

ActionComponents.RGBColor.RGBColor ( Color  color)

Initializes a new instance of the ActionHSBColorPicker.RGBColor class.

Parameters
colorColor.

Here is the call graph for this function:

Member Function Documentation

void ActionComponents.RGBColor.FromHSV ( HSVColor  color)

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

Parameters
colorColor.

Here is the call graph for this function:

Here is the caller graph for this function:

void ActionComponents.RGBColor.FromRawColor ( Color  color)

Sets the value of this RGB color from a UIColor

Parameters
colorColor.

Here is the caller graph for this function:

HSVColor ActionComponents.RGBColor.ToHSV ( bool  preserveHS)

Tos the HS.

Returns
The HS.
Parameters
preserveHSIf set to true preserves the current Hue and Saturation.

Here is the caller graph for this function:

Color ActionComponents.RGBColor.ToRawColor ( )

Returns a Color for this RGB color

Returns
The user interface color.

Property Documentation

float ActionComponents.RGBColor.Blue
getset

Gets or sets the blue value.

The blue value as a number between 0 and 1.

float ActionComponents.RGBColor.Green
getset

Gets or sets the green value

The green value as a number between 0 and 1.

HSVColor ActionComponents.RGBColor.HSV
getset

Gets or sets the HSV color for this RGB color

The HS.

Color ActionComponents.RGBColor.Raw
getset

Gets or sets the RGBColor as a raw Android Color.

The color as a raw Android Color.

float ActionComponents.RGBColor.Red
getset

Gets or sets the red value.

The red value as a number between 0 and 1.