CodeCarvings.Piczard
SetImageResolution Method
See Also  Send Feedback
CodeCarvings.Piczard.Helpers Namespace > ImageHelper Class : SetImageResolution Method

image
The image of which to set the resolution.
resolution
The new resolution (DPI).
Sets the resolution, in pixels per inch, of the Image.

Syntax

Visual Basic (Declaration)  
Public Shared Sub SetImageResolution( _
   ByVal image As Bitmap, _
   ByVal resolution As Single _
) 
C#  
public static void SetImageResolution( 
   Bitmap image,
   float resolution
)

Parameters

image
The image of which to set the resolution.
resolution
The new resolution (DPI).

Remarks

Both the VerticalResolution and HorizontalResolution properties of the Image object are updated.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.