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


## binarize_fixed {#byte}

Binarization of an image with predefined threshold



```python
def binarize_fixed(self, threshold):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| threshold | byte | Threshold value. If corresponding gray value of a pixel is greater than threshold, a value of 255 will be assigned to it, 0 otherwise. |



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