Changes the image size.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static Bitmap ResizeImage(
	Image image,
	int newWidth,
	int newHeight
)

Parameters

image
Type: System.Drawing..::.Image
Image.
newWidth
Type: System..::.Int32
A new width.
newHeight
Type: System..::.Int32
A new height.

Return Value

A new bitmap (Bitmap with the changed image.

Remarks

The antialias filter will be used for sizing.

Exceptions

ExceptionCondition
System..::.ArgumentNullException image is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also