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


## get_pixel {#int-int}

Gets an image pixel.


### Returns 


The pixel color for the specified location.


```python
def get_pixel(self, x, y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | int | The pixel x location. |
| y | int | The pixel y location. |



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