@DOMObjectAttribute @DOMNameAttribute(name="RGBColor") public class RGBColor extends DOMObject
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.
PropertyChanged
Constructor and Description |
---|
RGBColor(CSSPrimitiveValue red,
CSSPrimitiveValue green,
CSSPrimitiveValue blue)
Initializes a new instance of the
RGBColor class. |
RGBColor(CSSPrimitiveValue alpha,
CSSPrimitiveValue red,
CSSPrimitiveValue green,
CSSPrimitiveValue blue)
Initializes a new instance of the
RGBColor class. |
Modifier and Type | Method and Description |
---|---|
CSSPrimitiveValue |
getAlpha()
This attribute is used for the alpha value of the RGB color.
|
CSSPrimitiveValue |
getBlue()
This attribute is used for the blue value of the RGB color.
|
CSSPrimitiveValue |
getGreen()
This attribute is used for the green value of the RGB color.
|
CSSPrimitiveValue |
getRed()
This attribute is used for the red value of the RGB color.
|
com.aspose.html.internal.ms.System.Drawing.Color |
toNative()
Converts to the native color object.
|
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public RGBColor(CSSPrimitiveValue alpha, CSSPrimitiveValue red, CSSPrimitiveValue green, CSSPrimitiveValue blue)
Initializes a new instance of the RGBColor
class.
alpha
- The alpha.red
- The red.green
- The green.blue
- The blue.public RGBColor(CSSPrimitiveValue red, CSSPrimitiveValue green, CSSPrimitiveValue blue)
Initializes a new instance of the RGBColor
class.
red
- The red.green
- The green.blue
- The blue.@DOMNameAttribute(name="red") public CSSPrimitiveValue getRed()
This attribute is used for the red value of the RGB color.
@DOMNameAttribute(name="green") public CSSPrimitiveValue getGreen()
This attribute is used for the green value of the RGB color.
@DOMNameAttribute(name="blue") public CSSPrimitiveValue getBlue()
This attribute is used for the blue value of the RGB color.
public CSSPrimitiveValue getAlpha()
This attribute is used for the alpha value of the RGB color.
public com.aspose.html.internal.ms.System.Drawing.Color toNative()
Converts to the native color object.
Color
object.