
## set_resolution {#float-float}

Sets the resolution for this [`RasterImage`](/cad/python-net/aspose.cad/rasterimage).



```python
def set_resolution(self, dpi_x, dpi_y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| dpi_x | float | The horizontal resolution, in dots per inch, of the [`RasterImage`](/cad/python-net/aspose.cad/rasterimage). |
| dpi_y | float | The vertical resolution, in dots per inch, of the [`RasterImage`](/cad/python-net/aspose.cad/rasterimage). |



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