Version

SetImageDimensions(Int32,Int32,Boolean) Method

Sets the diensions of the image
Syntax
'Declaration
 
Public Overloads Function SetImageDimensions( _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal warnOnLossOfData As Boolean _
) As Boolean
public bool SetImageDimensions( 
   int width,
   int height,
   bool warnOnLossOfData
)

Parameters

width
The new width of the image
height
The new height of the image
warnOnLossOfData
True if this function should present a message box warning the user when data will be lost

Return Value

True if the image was resized successfully, false otherwise
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also