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

Dithering settings to be applied to image upon saving.
## Constructors

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

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getBits()](#getBits--) | The sampling factor of dithered image. |
| [getClass()](#getClass--) |  |
| [getCustomPalette()](#getCustomPalette--) | The custom palette for dithering. |
| [getMethod()](#getMethod--) | Dithering algorithm selection. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setBits(int value)](#setBits-int-) | The sampling factor of dithered image. |
| [setCustomPalette(IColorPalette value)](#setCustomPalette-com.aspose.psd.IColorPalette-) | The custom palette for dithering. |
| [setMethod(int value)](#setMethod-int-) | Dithering algorithm selection. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### DitheringMode() {#DitheringMode--}
```
public DitheringMode()
```


### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getBits() {#getBits--}
```
public int getBits()
```


The sampling factor of dithered image.

**Returns:**
int
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getCustomPalette() {#getCustomPalette--}
```
public IColorPalette getCustomPalette()
```


The custom palette for dithering.

**Returns:**
[IColorPalette](../../com.aspose.psd/icolorpalette)
### getMethod() {#getMethod--}
```
public int getMethod()
```


Dithering algorithm selection.

**Returns:**
int
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




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


The sampling factor of dithered image.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setCustomPalette(IColorPalette value) {#setCustomPalette-com.aspose.psd.IColorPalette-}
```
public void setCustomPalette(IColorPalette value)
```


The custom palette for dithering.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [IColorPalette](../../com.aspose.psd/icolorpalette) |  |

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


Dithering algorithm selection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

