## IColorComponents interface

声明处理颜色分量的方法和属性。

```csharp
public interface IColorComponents
```

## 特性

| 姓名 | 描述 |
| --- | --- |
| [Alpha](../../aspose.html.drawing/icolorcomponents/alpha/) { get; } | 返回 alpha 分量。 |
| [Components](../../aspose.html.drawing/icolorcomponents/components/) { get; } | 将颜色分量作为浮点数组返回。 |
| [Model](../../aspose.html.drawing/icolorcomponents/model/) { get; } | 返回颜色模型。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| [ToColor](../../aspose.html.drawing/icolorcomponents/tocolor/)() | 将颜色分量转换为 Color 对象。 |
| [ToString](../../aspose.html.drawing/icolorcomponents/tostring/)(bool, bool, int) | 将颜色分量转换为字符串表示。 |

### 也可以看看

* 命名空间 [Aspose.Html.Drawing](../../aspose.html.drawing/)
* 部件 [Aspose.HTML](../../)


