**Inheritance:**
java.lang.Object
```
public class DitheringMode
```

保存时要应用于图像的抖动设置。
## 构造函数

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

| 方法 | 描述 |
| --- | --- |
| [getMethod()](#getMethod--) | 抖动算法选择。 |
| [setMethod(int value)](#setMethod-int-) | 抖动算法选择。 |
| [getBits()](#getBits--) | 抖动图像的采样因子。 |
| [setBits(int value)](#setBits-int-) | 抖动图像的采样因子。 |
| [getCustomPalette()](#getCustomPalette--) | 抖动的自定义调色板。 |
| [setCustomPalette(IColorPalette value)](#setCustomPalette-com.aspose.imaging.IColorPalette-) | 抖动的自定义调色板。 |
### DitheringMode() {#DitheringMode--}
```
public DitheringMode()
```


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


抖动算法选择。

**Returns:**
int
### setMethod(int value) {#setMethod-int-}
```
public void setMethod(int value)
```


抖动算法选择。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int |  |

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


抖动图像的采样因子。

**Returns:**
int
### setBits(int value) {#setBits-int-}
```
public void setBits(int value)
```


抖动图像的采样因子。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int |  |

### getCustomPalette() {#getCustomPalette--}
```
public IColorPalette getCustomPalette()
```


抖动的自定义调色板。

**Returns:**
[IColorPalette](../../com.aspose.imaging/icolorpalette)
### setCustomPalette(IColorPalette value) {#setCustomPalette-com.aspose.imaging.IColorPalette-}
```
public void setCustomPalette(IColorPalette value)
```


抖动的自定义调色板。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [IColorPalette](../../com.aspose.imaging/icolorpalette) |  |

