ClassRgbColor
Device RGB color with ARGB components for drawing content; use to specify red/green/blue values with optional transparency.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class RgbColor : SimpleColor, IEquatable<ColorBase>
Inheritance: objectColorBaseSimpleColorRgbColor
Implements:
Inherited Members
Constructors
RgbColor()
Creates an RgbColor with default alpha (fully opaque).
Declaration
public RgbColor()
RgbColor(byte, byte, byte)
Creates an RgbColor from RGB components with default alpha (fully opaque).
RgbColor(byte, byte, byte, byte)
Creates an RgbColor from explicit ARGB components.
Declaration
public RgbColor(byte a, byte r, byte g, byte b)
Parameters
a
The alpha (transparency) component value (0-255), where 0 is fully transparent and 255 is fully opaque.
r
The red component value (0-255).
g
The green component value (0-255).
b
The blue component value (0-255).
Fields
A
Gets or sets the alpha (transparency) component, 0–255 (0 = transparent, 255 = opaque).
Declaration
public byte A
Field Value
The alpha component value, where 0 represents fully transparent and 255 represents fully opaque.
B
Gets or sets the blue component, 0–255.
G
Gets or sets the green component, 0–255.
Methods
Equals(ColorBase)
Determines whether the specified color is equal to the current RGB color.
GetHashCode()
Calculates a hash code for this RGB color instance based on its component values.
Declaration
public override int GetHashCode()
Returns
A hash code for the current RGB color.
Overrides
ToString()
Returns a string representation of this RGB color showing its ARGB component values.
Declaration
public override string ToString()
Returns
A string representation of the RGB color in the format "<A=alpha R=red G=green B=blue>".
Overrides