## Bitmap::SetResolution method


设置图像的分辨率。

```cpp
void System::Drawing::Bitmap::SetResolution(float xDpi, float yDpi)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| xDpi | float | 新的水平分辨率（每英寸像素数）。 |
| yDpi | float | 新的垂直分辨率（每英寸像素数）。 |

## 另见

* Class [Bitmap](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Font for C++](../../../)
