OdGradientBrush
内容
[
隐藏
]Inheritance: java.lang.Object, com.aspose.imaging.fileformats.opendocument.objects.brush.OdBrush
public class OdGradientBrush extends OdBrush
渐变填充
构造函数
| 构造函数 | 描述 |
|---|---|
| OdGradientBrush() |
方法
| 方法 | 描述 |
|---|---|
| getGradientStyle() | 获取渐变样式。 |
| setGradientStyle(int value) | 设置渐变样式。 |
| getStartColor() | 获取起始颜色。 |
| setStartColor(int value) | 设置起始颜色。 |
| getEndColor() | 获取结束颜色。 |
| setEndColor(int value) | 设置结束颜色。 |
| getAngle() | 获取角度。 |
| setAngle(float value) | 设置角度。 |
| getBrushStyle() | 获取样式。 |
| deepClone() | 克隆此实例。 |
OdGradientBrush()
public OdGradientBrush()
getGradientStyle()
public final int getGradientStyle()
获取渐变样式。
Returns: int - 渐变样式。
setGradientStyle(int value)
public final void setGradientStyle(int value)
设置渐变样式。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 渐变样式。 |
getStartColor()
public final int getStartColor()
获取起始颜色。
Returns: int - 起始颜色。
setStartColor(int value)
public final void setStartColor(int value)
设置起始颜色。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 起始颜色。 |
getEndColor()
public final int getEndColor()
获取结束颜色。
Returns: int - 结束颜色。
setEndColor(int value)
public final void setEndColor(int value)
设置结束颜色。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 结束颜色。 |
getAngle()
public final float getAngle()
获取角度。
Returns: float - 角度。
setAngle(float value)
public final void setAngle(float value)
设置角度。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | float | 角度。 |
getBrushStyle()
public int getBrushStyle()
获取样式。
Returns: int - 样式。
deepClone()
public Object deepClone()
克隆此实例。
Returns: java.lang.Object - 返回源画刷的新实例