Color.FromRgb
内容
[
隐藏
]FromRgb(byte, byte, byte)
返回具有请求的 ged、绿色、蓝色值的新颜色。 所有颜色分量必须在 0-255 范围内。
public static Color FromRgb(byte red, byte green, byte blue)
| 范围 | 类型 | 描述 |
|---|---|---|
| red | Byte | 表示颜色的红色分量的字节。 |
| green | Byte | 表示颜色的绿色分量的字节。 |
| blue | Byte | 表示颜色的蓝色分量的字节。 |
返回值
的一个新实例Color班级
也可以看看
- class Color
- 命名空间 Aspose.Html.Drawing
- 部件 Aspose.HTML
FromRgb(int, int, int)
返回具有请求的 ged、绿色、蓝色值的新颜色。 所有颜色分量必须在 0-255 范围内。
public static Color FromRgb(int red, int green, int blue)
| 范围 | 类型 | 描述 |
|---|---|---|
| red | Int32 | 表示颜色的红色分量的 int。 |
| green | Int32 | 表示颜色的绿色分量的 int。 |
| blue | Int32 | 表示颜色的蓝色分量的 int。 |
返回值
的一个新实例Color班级
也可以看看
- class Color
- 命名空间 Aspose.Html.Drawing
- 部件 Aspose.HTML
FromRgb(float, float, float)
返回具有请求的 ged、绿色、蓝色值的新颜色。 所有颜色分量必须在 0-1 范围内。
public static Color FromRgb(float red, float green, float blue)
| 范围 | 类型 | 描述 |
|---|---|---|
| red | Single | 表示颜色的红色分量的浮点数。 |
| green | Single | 表示颜色的绿色分量的浮点数。 |
| blue | Single | 表示颜色的蓝色分量的浮点数。 |
返回值
的一个新实例Color班级
也可以看看
- class Color
- 命名空间 Aspose.Html.Drawing
- 部件 Aspose.HTML