**Inheritance:**
java.lang.Object, [com.aspose.imaging.fileformats.opendocument.objects.brush.OdBrush](../../com.aspose.imaging.fileformats.opendocument.objects.brush/odbrush)
```
public class OdGradientBrush extends OdBrush
```

渐变填充
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [OdGradientBrush()](#OdGradientBrush--) |  |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getGradientStyle()](#getGradientStyle--) | 获取渐变样式。 |
| [setGradientStyle(int value)](#setGradientStyle-int-) | 设置渐变样式。 |
| [getStartColor()](#getStartColor--) | 获取起始颜色。 |
| [setStartColor(int value)](#setStartColor-int-) | 设置起始颜色。 |
| [getEndColor()](#getEndColor--) | 获取结束颜色。 |
| [setEndColor(int value)](#setEndColor-int-) | 设置结束颜色。 |
| [getAngle()](#getAngle--) | 获取角度。 |
| [setAngle(float value)](#setAngle-float-) | 设置角度。 |
| [getBrushStyle()](#getBrushStyle--) | 获取样式。 |
| [deepClone()](#deepClone--) | 克隆此实例。 |
### OdGradientBrush() {#OdGradientBrush--}
```
public OdGradientBrush()
```


### getGradientStyle() {#getGradientStyle--}
```
public final int getGradientStyle()
```


获取渐变样式。

**Returns:**
int - 渐变样式。
### setGradientStyle(int value) {#setGradientStyle-int-}
```
public final void setGradientStyle(int value)
```


设置渐变样式。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int | 渐变样式。 |

### getStartColor() {#getStartColor--}
```
public final int getStartColor()
```


获取起始颜色。

**Returns:**
int - 起始颜色。
### setStartColor(int value) {#setStartColor-int-}
```
public final void setStartColor(int value)
```


设置起始颜色。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int | 起始颜色。 |

### getEndColor() {#getEndColor--}
```
public final int getEndColor()
```


获取结束颜色。

**Returns:**
int - 结束颜色。
### setEndColor(int value) {#setEndColor-int-}
```
public final void setEndColor(int value)
```


设置结束颜色。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int | 结束颜色。 |

### getAngle() {#getAngle--}
```
public final float getAngle()
```


获取角度。

**Returns:**
float - 角度。
### setAngle(float value) {#setAngle-float-}
```
public final void setAngle(float value)
```


设置角度。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 角度。 |

### getBrushStyle() {#getBrushStyle--}
```
public int getBrushStyle()
```


获取样式。

**Returns:**
int - 样式。
### deepClone() {#deepClone--}
```
public Object deepClone()
```


克隆此实例。

**Returns:**
java.lang.Object - 返回源画笔的新实例
