PathGradientBrushBase

Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.Brush, com.aspose.imaging.brushes.TransformBrush

public abstract class PathGradientBrushBase extends TransformBrush

表示具有基础路径渐变功能的 Brush

请注意,在创建 PathGradientBrushBase 类时,至少应使用 2 个点进行初始化。创建的内部路径始终是闭合图形,最后一个点连接第一个点。该形状由此 PathGradientBrushBase 填充。GDI+ 实现会在传入空数组或点集合具有相同坐标时抛出 OutOfMemoryError。当点数组少于 2 个点时,PathGradientBrushBase 会抛出异常,ArgumentException 会在点数组不可接受时被抛出,而不是 OutOfMemoryError。默认情况下,中心点按传入点的质心计算。用户可以稍后更改此点。焦点比例默认是空点 (0.0, 0.0)。

方法

方法描述
getPathPoints()获取此画刷构建所依据的路径点。
getGraphicsPath()获取此画刷构建所依据的图形路径。
getCenterPoint()获取或设置路径渐变的中心点。
setCenterPoint(PointF value)获取或设置路径渐变的中心点。
getFocusScales()获取渐变衰减的焦点。
setFocusScales(PointF value)获取或设置渐变衰减的焦点。

getPathPoints()

public PointF[] getPathPoints()

获取此画刷构建所依据的路径点。

Returns: com.aspose.imaging.PointF[] - 路径点。

getGraphicsPath()

public GraphicsPath getGraphicsPath()

获取此画刷构建所依据的图形路径。

Returns: GraphicsPath - The graphics path.

getCenterPoint()

public PointF getCenterPoint()

获取或设置路径渐变的中心点。

Returns: PointF - A Aspose.Imaging.PointF that represents the center point of the path gradient.

setCenterPoint(PointF value)

public void setCenterPoint(PointF value)

获取或设置路径渐变的中心点。

Parameters:

参数类型描述
valuePointFAspose.Imaging.PointF 表示路径渐变的中心点。

getFocusScales()

public PointF getFocusScales()

获取渐变衰减的焦点。

Returns: PointF - A Aspose.Imaging.PointF that represents the focus point for the gradient falloff.

setFocusScales(PointF value)

public void setFocusScales(PointF value)

获取或设置渐变衰减的焦点。

Parameters:

参数类型描述
valuePointF一个表示渐变衰减焦点的 Aspose.Imaging.PointF