Click or drag to resize

ImageUtilitiesResizeImage Method (Image, NullableInt32, NullableInt32)

Resizes an image.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static Bitmap ResizeImage(
	Image image,
	int? width,
	int? height
)

Parameters

image
Type: System.DrawingImage
The image.
width
Type: SystemNullableInt32
The width.
height
Type: SystemNullableInt32
The height.

Return Value

Type: Bitmap
A resized bitmap instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionimage is null.
ArgumentExceptionboth width and height are unspecified.
See Also