---
title: "dither method"
url: "https://reference.aspose.com/cad/python-net/aspose.cad/rasterimage/dither/"
product: "Aspose.CAD for Python via .NET API References"
---


## dither {#aspose.cad.DitheringMethod-int}

Performs dithering on the current image.



```python
def dither(self, dithering_method, bits_count):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| dithering_method | [`DitheringMethod`](/cad/python-net/aspose.cad/ditheringmethod) | The dithering method. |
| bits_count | int | The final bits count for dithering. |


## dither {#aspose.cad.DitheringMethod-int-aspose.cad.IColorPalette}

Performs dithering on the current image.



```python
def dither(self, dithering_method, bits_count, custom_palette):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| dithering_method | [`DitheringMethod`](/cad/python-net/aspose.cad/ditheringmethod) | The dithering method. |
| bits_count | int | The final bits count for dithering. |
| custom_palette | [`IColorPalette`](/cad/python-net/aspose.cad/icolorpalette) | The custom palette for dithering. |



### See Also
* module [`aspose.cad`](../../)
* class [`RasterImage`](/cad/python-net/aspose.cad/rasterimage)
