Click or drag to resize
Ranorex

ImagingResize Method (Bitmap, Int32, Int32)

Resizes the input image.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 10.2.5+git.08880485
Syntax
public static Bitmap Resize(
	Bitmap input,
	int width,
	int height
)

Parameters

input
Type: System.DrawingBitmap
An image.
width
Type: SystemInt32
The width the image should be resized to.
height
Type: SystemInt32
The height the image should be resized to.

Return Value

Type: Bitmap
The resized image with the specified width and height.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf input is null.
ArgumentOutOfRangeExceptionIf width or height are not positive.
See Also