Xamarin.Forms.Color: Method Members

The methods of Xamarin.Forms.Color are listed below. For a list of all members, see the Color Members list.

See Also: Inherited members from System.ValueType

Public Methods

AddLuminosity(double) : Color
Returns a new Color with a modified luminosity channel.
override
Equals(object) : bool
Determine if the provided object is equivalent to the current Color.
static
FromHex(string) : Color
Returns a new RGB Color instance with the requested Red, Green, and Blue channels. The Alpha channel is set if hex contains one.
static
FromHsla(double, double, double, double) : Color
Returns a new HSL Color with an alpha channel
static
FromRgb(double, double, double) : Color
Returns a new rgb color instance.
static
FromRgb(int, int, int) : Color
Returns a new rgb color instance.
static
FromRgba(double, double, double, double) : Color
Returns a new RGBA color instance.
static
FromRgba(int, int, int, int) : Color
Returns a new RGBA color instance.
static
FromUint(uint) : Color
Returns a new Color with the requested RGBA value.
override
GetHashCode() : int
Returns the Hashcode for this object.
MultiplyAlpha(double) : Color
Returns a new color with the alpha channel multiplied by alpha, clamped to the inclusive range [0-1].
override
ToString() : string
Returns a string representation of the Color.
WithHue(double) : Color
Returns a color with modified Hue, but keeping the same Saturation and Luminosity.
WithLuminosity(double) : Color
Returns a color with modified Luminosity.
WithSaturation(double) : Color
Returns a new color with modified Saturation.