Class RgbColor
Represents RGB color.
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class RgbColor : SimpleColor, IEquatable<ColorBase>
Constructors
RgbColor()
RgbColor(Byte, Byte, Byte)
Initializes a new instance of the RgbColor class.
Declaration
public RgbColor(byte r, byte g, byte b)
Parameters
System.Byte
r
The red component. |
System.Byte
g
The green component. |
System.Byte
b
The blue component. |
RgbColor(Byte, Byte, Byte, Byte)
Initializes a new instance of the RgbColor class.
Declaration
public RgbColor(byte a, byte r, byte g, byte b)
Parameters
System.Byte
a
The alpha component. |
System.Byte
r
The red component. |
System.Byte
g
The green component. |
System.Byte
b
The blue component. |
Fields
A
Gets or sets the alpha component.
Declaration
public byte A
Field Value
System.Byte
The alpha component. |
B
Gets or sets the blue component.
Declaration
public byte B
Field Value
System.Byte
The blue component. |
G
Gets or sets the green component.
Declaration
public byte G
Field Value
System.Byte
The green component. |
R
Gets or sets the red component.
Declaration
public byte R
Field Value
System.Byte
The red component. |
Methods
Equals(ColorBase)
Equalses the specified other.
Declaration
public override bool Equals(ColorBase other)
Parameters
ColorBase
other
The other. |
Returns
System.Boolean
|
Overrides
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |
Overrides
ToString()
Returns the text representation of the color.
Declaration
public override string ToString()
Returns
System.String
Returns the text representation of the color. |