ESRI.ArcGIS.ADF.Web
SetBitmapResolution Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.Display.Drawing Namespace > GdiUtility Class : SetBitmapResolution Method




bmp
Reference to the bitmap image to potentially change.
dpi
Resolution to assign if not currently set to this value.
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
Visual Basic (Usage)Copy Code
Dim bmp As Bitmap
Dim dpi As Integer
Dim value As Boolean
 
value = GdiUtility.SetBitmapResolution(bmp, dpi)
C# 
public static bool SetBitmapResolution( 
   ref Bitmap bmp,
   int dpi
)

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

© 2011 All Rights Reserved.