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


## set_pixel {#int-int-aspose.cad.Color}

Sets an image pixel for the specified position.



```python
def set_pixel(self, x, y, color):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | int | The pixel x location. |
| y | int | The pixel y location. |
| color | [`Color`](/cad/python-net/aspose.cad/color) | The pixel color for the specified position. |



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