Interface IColorComponents
Interface IColorComponents
Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.7.0)
Declares method and properties for processing color components.
[ComVisible(true)]
public interface IColorComponentsProperties
Alpha
Returns the alpha component.
float Alpha { get; }Property Value
Components
Returns the color components as float array.
float[] Components { get; }Property Value
float []
Model
Returns the color model.
ColorModel Model { get; }Property Value
Methods
ToColor()
Converts the color components to the Color object.
Color ToColor()Returns
A new instance of the Aspose.Html.Drawing.Color class
ToString(bool, bool, int)
Converts color components to string representation.
string ToString(bool includeAlpha, bool asDecimal, int digits)Parameters
includeAlpha bool
Specifies whether to add Alpha component.
asDecimal bool
Specifies whether color components are preserved as a decimal number or as a percentage.
digits int
Sets the rounding precision for color components.
Returns
String representation of the color components.