Color Struct
Definition
An ARGB color.
public struct Color
Constructors
| Name | Description |
|---|---|
| Color | Initializes a new instance of the Avalonia.Media.Color struct. |
Color Constructor
Initializes a new instance of the Avalonia.Media.Color struct.
public Color(byte a, byte r, byte g, byte b)
Parameters
a byte
The alpha component.
r byte
The red component.
g byte
The green component.
b byte
The blue component.
Methods
| Name | Description |
|---|---|
| Equals (2 overloads) | No summary available. |
| FromArgb | Creates a Avalonia.Media.Color from alpha, red, green and blue components. |
| FromRgb | Creates a Avalonia.Media.Color from red, green and blue components. |
| FromUInt32 | Creates a Avalonia.Media.Color from an integer. |
| GetHashCode | No summary available. |
| Parse (2 overloads) | No summary available. |
| ToHsl (2 overloads) | Returns the HSL color model equivalent of this RGB color. |
| ToHsv (2 overloads) | Returns the HSV color model equivalent of this RGB color. |
| ToString | Returns the string representation of the color. |
| ToUInt32 | Returns the integer representation of the color. |
| TryParse (2 overloads) | No summary available. |