Class SunamoColor
- Namespace
- SunamoColors
- Assembly
- SunamoColors.dll
Represents a color with alpha, red, green, and blue components
public class SunamoColor
- Inheritance
-
SunamoColor
- Inherited Members
- Extension Methods
Constructors
SunamoColor()
Initializes a new instance of the SunamoColor class with default values
public SunamoColor()
SunamoColor(byte, byte, byte, byte)
Initializes a new instance of the SunamoColor class with specified ARGB values
public SunamoColor(byte alpha, byte red, byte green, byte blue)
Parameters
alphabyteThe alpha channel (transparency) value
redbyteThe red channel value
greenbyteThe green channel value
bluebyteThe blue channel value
Properties
A
Gets or sets the alpha channel (transparency) value
public byte A { get; set; }
Property Value
B
Gets or sets the blue channel value
public byte B { get; set; }
Property Value
G
Gets or sets the green channel value
public byte G { get; set; }
Property Value
R
Gets or sets the red channel value
public byte R { get; set; }
Property Value
Methods
ToString()
Returns a string representation of this color
public override string ToString()
Returns
- string
A string representation of the color
Exceptions
- Exception
Thrown because StringHexColorConverter has been moved and is only available in WPF, not WinForms