## Bitmap::SetResolution method


Sets the resolution of the image.

```cpp
void System::Drawing::Bitmap::SetResolution(float xDpi, float yDpi)
```


| Parameter | Type | Description |
| --- | --- | --- |
| xDpi | float | The new horizontal resolution in pixels per inch. |
| yDpi | float | The new vertical resolution in pixels per inch. |

## See Also

* Class [Bitmap](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
