{{< psd/tize >}}
## Dither(DitheringMethod, int, IColorPalette) {#dither_1}

Performs dithering on the current image.

```csharp
public abstract void Dither(DitheringMethod ditheringMethod, int bitsCount, 
    IColorPalette customPalette)
```

| Parameter | Type | Description |
| --- | --- | --- |
| ditheringMethod | DitheringMethod | The dithering method. |
| bitsCount | Int32 | The final bits count for dithering. |
| customPalette | IColorPalette | The custom palette for dithering. |

### See Also

* enum [DitheringMethod](../../ditheringmethod/)
* interface [IColorPalette](../../icolorpalette/)
* class [RasterImage](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)

---

## Dither(DitheringMethod, int) {#dither}

Performs dithering on the current image.

```csharp
public void Dither(DitheringMethod ditheringMethod, int bitsCount)
```

| Parameter | Type | Description |
| --- | --- | --- |
| ditheringMethod | DitheringMethod | The dithering method. |
| bitsCount | Int32 | The final bits count for dithering. |

### See Also

* enum [DitheringMethod](../../ditheringmethod/)
* class [RasterImage](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)


