Class RgbaColor
A struct representing a color comprised of Red, Green, Blue and Alpha channels.
Inheritance
Namespace: Telerik.Windows.Controls.ColorEditor.ColorSchemas
Assembly: Telerik.Windows.Controls.dll
Syntax
public sealed class RgbaColor : ValueType
Constructors
RgbaColor(Double, Double, Double, Double)
Initializes a new instance of the Rgba
Declaration
public RgbaColor(double red, double green, double blue, double alpha)
Parameters
System. The red channel. |
System. The green channel. |
System. The blue channel. |
System. The alpha channel. |
RgbaColor(Color)
Initializes a new instance of the Rgba
Declaration
public RgbaColor(Color color)
Parameters
System. The color. |
Properties
Alpha
Gets the alpha (opacity) channel of the Rgba
Declaration
public double Alpha { get; }
Property Value
System. The alpha channel. |
Blue
Gets the blue channel of the Rgba
Declaration
public double Blue { get; }
Property Value
System. The blue channel. |
Green
Gets the green channel of the Rgba
Declaration
public double Green { get; }
Property Value
System. The green channel. |
Red
Gets the red channel of the Rgba
Declaration
public double Red { get; }
Property Value
System. The red channel. |
Methods
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
System. The System. |
Returns
System. True if the specified System. |
Equals(RgbaColor)
Compares the two instance.
Declaration
public bool Equals(RgbaColor otherInstance)
Parameters
Rgba The other instance. |
Returns
System.
|
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System. A hash code for the current System. |
Operators
Equality(RgbaColor, RgbaColor)
Implements the operator ==.
Declaration
public static bool operator ==(RgbaColor instance1, RgbaColor instance2)
Parameters
Returns
System. The result of the operator. |
Inequality(RgbaColor, RgbaColor)
Implements the operator !=.
Declaration
public static bool operator !=(RgbaColor instance1, RgbaColor instance2)
Parameters
Returns
System. The result of the operator. |