Bitmap::SetResolution Method (Single, Single)
.NET Framework (current version)
Sets the resolution for this Bitmap.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- xDpi
-
Type:
System::Single
The horizontal resolution, in dots per inch, of the Bitmap.
- yDpi
-
Type:
System::Single
The vertical resolution, in dots per inch, of the Bitmap.
| Exception | Condition |
|---|---|
| Exception | The operation failed. |
Use this method to set the desired resolution on a newly created bitmap. Changing the resolution of the image does not change its physical size.
.NET Framework
Available since 1.1
Available since 1.1
Show: