PathMulticolorGradientBrush 类
Summary: Encapsulates a Brush object with a gradient. This class cannot be inherited.
Module: aspose.imaging.brushes
Full Name: aspose.imaging.brushes.PathMulticolorGradientBrush
Inheritance: PathGradientBrushBase
Constructors
| Name | 描述 |
|---|---|
| PathMulticolorGradientBrush(path) | 使用指定的点初始化 PathMulticolorGradientBrush 类的新实例。 |
| PathMulticolorGradientBrush(path_points) | 使用指定的点初始化 PathMulticolorGradientBrush 类的新实例。 |
| PathMulticolorGradientBrush(path_points) | 使用指定的点初始化 PathMulticolorGradientBrush 类的新实例。 |
| PathMulticolorGradientBrush(path_points, wrap_mode) | 使用指定的点和包装模式初始化 PathMulticolorGradientBrush 类的新实例。 |
| PathMulticolorGradientBrush(path_points, wrap_mode) | 使用指定的点和包装模式初始化 PathMulticolorGradientBrush 类的新实例。 |
Properties
| Name | Type | Access | 描述 |
|---|---|---|---|
| center_point | PointF | r/w | 获取或设置路径渐变的中心点。 |
| disposed | bool | r | 获取一个值,指示此实例是否已释放。 |
| focus_scales | PointF | r/w | 获取或设置渐变衰减的焦点。 |
| graphics_path | GraphicsPath | r | 获取此画笔所基于的图形路径。 |
| interpolation_colors | ColorBlend | r/w | 获取或设置一个 ColorBlend,用于定义多颜色线性渐变。 |
| is_transform_changed | bool | r | 获取一个值,指示变换是否以某种方式被更改。例如设置变换矩阵或 调用任何修改变换矩阵的方法。此属性为向后兼容 GDI+ 而引入。 |
| opacity | float | r/w | 获取或设置画笔的不透明度。该值应在 0 到 1 之间。0 表示画笔完全可见,1 表示画笔完全不透明。 |
| path_points | PointF[] | r | 获取此画笔所基于的路径点。 |
| transform | Matrix | r/w | 获取或设置一个 Matrix 副本,用于定义此 TransformBrush 的局部几何变换。 |
| wrap_mode | WrapMode | r/w | 获取或设置一个指示此 TransformBrush 的包装模式的 WrapMode 枚举。 |
Methods
Constructor: PathMulticolorGradientBrush(path)
PathMulticolorGradientBrush(path)
使用指定的点初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath |
Constructor: PathMulticolorGradientBrush(path_points)
PathMulticolorGradientBrush(path_points)
使用指定的点初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path_points | PointF[] | 一个由 PointF 结构组成的数组,表示构成路径顶点的点。 |
Constructor: PathMulticolorGradientBrush(path_points)
PathMulticolorGradientBrush(path_points)
使用指定的点初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path_points | Point[] | 一个由 PointF 结构组成的数组,表示构成路径顶点的点。 |
Constructor: PathMulticolorGradientBrush(path_points, wrap_mode)
PathMulticolorGradientBrush(path_points, wrap_mode)
使用指定的点和包装模式初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path_points | PointF[] | 一个由 PointF 结构组成的数组,表示构成路径顶点的点。 |
| wrap_mode | WrapMode | 一个 WrapMode 用于指定使用此 PathMulticolorGradientBrush 绘制的填充如何平铺。 |
Constructor: PathMulticolorGradientBrush(path_points, wrap_mode)
PathMulticolorGradientBrush(path_points, wrap_mode)
使用指定的点和包装模式初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path_points | Point[] | 一个由 PointF 结构组成的数组,表示构成路径顶点的点。 |
| wrap_mode | WrapMode | 一个 WrapMode 用于指定使用此 PathMulticolorGradientBrush 绘制的填充如何平铺。 |
Method: create_with_path(path) [static]
create_with_path(path)
使用指定的路径初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 定义此 PathMulticolorGradientBrush 填充的区域的 GraphicsPath。 |
Returns
| Type | Description |
|---|---|
| PathMulticolorGradientBrush |
Method: create_with_points(path_points) [static]
create_with_points(path_points)
使用指定的点初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path_points | PointF[] | 一个由 PointF 结构组成的数组,表示构成路径顶点的点。 |
Returns
| Type | Description |
|---|---|
| PathMulticolorGradientBrush |
Method: create_with_points_f(path_points) [static]
create_with_points_f(path_points)
使用指定的点初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path_points | Point[] | 一个由 Point 结构组成的数组,表示构成路径顶点的点。 |
Returns
| Type | Description |
|---|---|
| PathMulticolorGradientBrush |
Method: create_with_points_f_wrap_mode(path_points, wrap_mode) [static]
create_with_points_f_wrap_mode(path_points, wrap_mode)
使用指定的点和包装模式初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path_points | PointF[] | 一个由 PointF 结构组成的数组,表示构成路径顶点的点。 |
| wrap_mode | WrapMode | 一个 WrapMode 用于指定使用此 PathMulticolorGradientBrush 绘制的填充如何平铺。 |
Returns
| Type | Description |
|---|---|
| PathMulticolorGradientBrush |
Method: create_with_points_wrap_mode(path_points, wrap_mode) [static]
create_with_points_wrap_mode(path_points, wrap_mode)
使用指定的点和包装模式初始化 PathMulticolorGradientBrush 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path_points | Point[] | 一个由 Point 结构组成的数组,表示构成路径顶点的点。 |
| wrap_mode | WrapMode | 一个 WrapMode 用于指定使用此 PathMulticolorGradientBrush 绘制的填充如何平铺。 |
Returns
| Type | Description |
|---|---|
| PathMulticolorGradientBrush |
Method: deep_clone()
deep_clone()
创建当前 Brush 的新深度克隆。
Returns
| Type | Description |
|---|---|
| Brush | 一个新的 Brush,它是此 Brush 实例的深度克隆。 |
Method: multiply_transform(matrix)
multiply_transform(matrix)
将表示此 LinearGradientBrush 的本地几何变换的 Matrix 与指定的 Matrix 相乘,并在前面预置指定的 Matrix。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| matrix | Matrix | 用于乘以几何变换的 Matrix。 |
Method: multiply_transform(matrix, order)
multiply_transform(matrix, order)
将表示此 LinearGradientBrush 的本地几何变换的 Matrix 与指定的 Matrix 按指定顺序相乘。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| matrix | Matrix | 用于乘以几何变换的 Matrix。 |
| order | MatrixOrder | 指定两个矩阵相乘顺序的 MatrixOrder。 |
Method: rotate_transform(angle)
rotate_transform(angle)
按指定量旋转本地几何变换。此方法将在变换前预置旋转。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| 角度 | float | 旋转角度。 |
Method: rotate_transform(angle, order)
rotate_transform(angle, order)
按指定量并按指定顺序旋转本地几何变换。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| 角度 | float | 旋转角度。 |
| order | MatrixOrder | 指定是追加还是预置旋转矩阵的 MatrixOrder。 |
Method: scale_transform(sx, sy)
scale_transform(sx, sy)
按指定的比例缩放本地几何变换。此方法将在变换前预置缩放矩阵。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| sx | float | 在 x 轴方向上缩放变换的量。 |
| sy | float | 在 y 轴方向上缩放变换的量。 |
Method: scale_transform(sx, sy, order)
scale_transform(sx, sy, order)
按指定的比例并按指定顺序缩放本地几何变换。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| sx | float | 在 x 轴方向上缩放变换的量。 |
| sy | float | 在 y 轴方向上缩放变换的量。 |
| order | MatrixOrder | 一个 MatrixOrder 用于指定是追加还是预先追加缩放矩阵。 |
Method: translate_transform(dx, dy)
translate_transform(dx, dy)
按指定的尺寸平移本地几何变换。此方法将在变换前预置平移。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| dx | float | x 方向的平移值。 |
| dy | float | y 方向的平移值。 |
Method: translate_transform(dx, dy, order)
translate_transform(dx, dy, order)
按指定的尺寸并按指定顺序平移本地几何变换。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| dx | float | x 方向的平移值。 |
| dy | float | y 方向的平移值。 |
| order | MatrixOrder | 应用平移的顺序(预先追加或追加)。 |