 | ImagingResize Method (Bitmap, Double, Double) |
Resizes the input image.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static Bitmap Resize(
Bitmap input,
double widthFactor,
double heightFactor
)
Public Shared Function Resize (
input As Bitmap,
widthFactor As Double,
heightFactor As Double
) As Bitmap
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:
BitmapThe resized image.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If input is null. |
| ArgumentOutOfRangeException | If width or height of the output
image are not positive. |
See Also