Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Bitmap.SetResolution Method

Sets the resolution for this Bitmap.

[Visual Basic]
Public Sub SetResolution( _
   ByVal xDpi As Single, _
   ByVal yDpi As Single _
)
[C#]
public void SetResolution(
 float xDpi,
 float yDpi
);
[C++]
public: void SetResolution(
 float xDpi,
 float yDpi
);
[JScript]
public function SetResolution(
   xDpi : float,
 yDpi : float
);

Parameters

xDpi
The horizontal resolution, in dots per inch, of the Bitmap.
yDpi
The vertical resolution, in dots per inch, of the Bitmap.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Bitmap Class | Bitmap Members | System.Drawing Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.