Interface IColorComponents

Interface IColorComponents

Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.2.0)

Declares method and properties for processing color components.

[ComVisible(true)]
public interface IColorComponents

Properties

Alpha

Returns the alpha component.

float Alpha { get; }

Property Value

float

Components

Returns the color components as float array.

float[] Components { get; }

Property Value

float[]

Model

Returns the color model.

ColorModel Model { get; }

Property Value

ColorModel

Methods

ToColor()

Converts the color components to the Color object.

Color ToColor()

Returns

Color

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

String representation of the color components.