Set the horizontal and vertical resolution of the bitmap to the desired value.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared Function SetBitmapResolution( _
ByRef bmp As Bitmap, _
ByVal dpi As Integer _
) As Boolean |
Parameters
- bmp
- Reference to the bitmap image to potentially change.
- dpi
- Resolution to assign if not currently set to this value.
Return Value
True if the resolution was changed, false otherwise.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also