Class RGBColor

Class RGBColor

Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML.dll (25.7.0)

The RGBColor interface is used to represent any RGB color value. This interface reflects the values in the underlying style property. Hence, modifications made to the CSSPrimitiveValue objects modify the style property.

[ComVisible(true)]
[DOMObject]
[DOMName("RGBColor")]
public class RGBColor : DOMObject, INotifyPropertyChanged

Inheritance

object DOMObject RGBColor

Implements

INotifyPropertyChanged

Inherited Members

DOMObject.GetPlatformType() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

Alpha

Gets the alpha component value of this Color class.

public CSSPrimitiveValue Alpha { get; }

Property Value

CSSPrimitiveValue

Remarks

The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. Likewise, an A value of 255 represents an opaque color. An A value from 1 through 254 represents a semitransparent color. The color becomes more opaque as A approaches 255.

Blue

Gets the blue component value of this Color class.

[DOMName("blue")]
public CSSPrimitiveValue Blue { get; }

Property Value

CSSPrimitiveValue

Remarks

The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. Likewise, an A value of 255 represents an opaque color. An A value from 1 through 254 represents a semitransparent color. The color becomes more opaque as A approaches 255.

Green

Gets the green component value of this Color class.

[DOMName("green")]
public CSSPrimitiveValue Green { get; }

Property Value

CSSPrimitiveValue

Remarks

The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. Likewise, an A value of 255 represents an opaque color. An A value from 1 through 254 represents a semitransparent color. The color becomes more opaque as A approaches 255.

Red

Gets the red component value of this Color class.

[DOMName("red")]
public CSSPrimitiveValue Red { get; }

Property Value

CSSPrimitiveValue

Remarks

The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. Likewise, an A value of 255 represents an opaque color. An A value from 1 through 254 represents a semitransparent color. The color becomes more opaque as A approaches 255.

Methods

ToNative()

Converts to the native color object.

public Color ToNative()

Returns

Color

The System.Drawing.Color object.

 English