Click or drag to resize
Ranorex

ImagingResize Method (Bitmap, Double, Double)

Resizes the input image.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static Bitmap Resize(
	Bitmap input,
	double widthFactor,
	double heightFactor
)

Parameters

input
Type: System.DrawingBitmap
An image.
widthFactor
Type: SystemDouble
The factor by which the width of the image should be resized.
heightFactor
Type: SystemDouble
The factor by which the height of the image should be resized.

Return Value

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