**Inheritance:**
java.lang.Object, [com.aspose.imaging.DisposableObject](../../com.aspose.imaging/disposableobject), [com.aspose.imaging.fileformats.cdr.objects.CdrObject](../../com.aspose.imaging.fileformats.cdr.objects/cdrobject), [com.aspose.imaging.fileformats.cdr.objects.CdrDictionaryItem](../../com.aspose.imaging.fileformats.cdr.objects/cdrdictionaryitem)
```
public class CdrFill extends CdrDictionaryItem
```

The cdr fill
## Constructors

| Constructor | Description |
| --- | --- |
| [CdrFill()](#CdrFill--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getFillType()](#getFillType--) | Gets the type of the fill. |
| [setFillType(short value)](#setFillType-short-) | Sets the type of the fill. |
| [getColor1()](#getColor1--) | Gets the color1. |
| [setColor1(CdrColor value)](#setColor1-com.aspose.imaging.fileformats.cdr.types.CdrColor-) | Sets the color1. |
| [getColor2()](#getColor2--) | Gets the color2. |
| [setColor2(CdrColor value)](#setColor2-com.aspose.imaging.fileformats.cdr.types.CdrColor-) | Sets the color2. |
| [getGradient()](#getGradient--) | Gets the gradient. |
| [setGradient(CdrGradient value)](#setGradient-com.aspose.imaging.fileformats.cdr.types.CdrGradient-) | Sets the gradient. |
| [getImageFill()](#getImageFill--) | Gets the image fill. |
| [setImageFill(CdrImageFill value)](#setImageFill-com.aspose.imaging.fileformats.cdr.types.CdrImageFill-) | Sets the image fill. |
### CdrFill() {#CdrFill--}
```
public CdrFill()
```


### getFillType() {#getFillType--}
```
public final short getFillType()
```


Gets the type of the fill.

**Returns:**
short - the type of the fill.
### setFillType(short value) {#setFillType-short-}
```
public final void setFillType(short value)
```


Sets the type of the fill.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | short | the type of the fill. |

### getColor1() {#getColor1--}
```
public final CdrColor getColor1()
```


Gets the color1.

**Returns:**
[CdrColor](../../com.aspose.imaging.fileformats.cdr.types/cdrcolor) - the color1.
### setColor1(CdrColor value) {#setColor1-com.aspose.imaging.fileformats.cdr.types.CdrColor-}
```
public final void setColor1(CdrColor value)
```


Sets the color1.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CdrColor](../../com.aspose.imaging.fileformats.cdr.types/cdrcolor) | the color1. |

### getColor2() {#getColor2--}
```
public final CdrColor getColor2()
```


Gets the color2.

**Returns:**
[CdrColor](../../com.aspose.imaging.fileformats.cdr.types/cdrcolor) - the color2.
### setColor2(CdrColor value) {#setColor2-com.aspose.imaging.fileformats.cdr.types.CdrColor-}
```
public final void setColor2(CdrColor value)
```


Sets the color2.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CdrColor](../../com.aspose.imaging.fileformats.cdr.types/cdrcolor) | the color2. |

### getGradient() {#getGradient--}
```
public final CdrGradient getGradient()
```


Gets the gradient.

**Returns:**
[CdrGradient](../../com.aspose.imaging.fileformats.cdr.types/cdrgradient) - the gradient.
### setGradient(CdrGradient value) {#setGradient-com.aspose.imaging.fileformats.cdr.types.CdrGradient-}
```
public final void setGradient(CdrGradient value)
```


Sets the gradient.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CdrGradient](../../com.aspose.imaging.fileformats.cdr.types/cdrgradient) | the gradient. |

### getImageFill() {#getImageFill--}
```
public final CdrImageFill getImageFill()
```


Gets the image fill.

**Returns:**
[CdrImageFill](../../com.aspose.imaging.fileformats.cdr.types/cdrimagefill) - the image fill.
### setImageFill(CdrImageFill value) {#setImageFill-com.aspose.imaging.fileformats.cdr.types.CdrImageFill-}
```
public final void setImageFill(CdrImageFill value)
```


Sets the image fill.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CdrImageFill](../../com.aspose.imaging.fileformats.cdr.types/cdrimagefill) | the image fill. |

