Click or drag to resize

UtilResizeImageWithCrop Method

Resize an image (and crop difference to maintain aspect ratio favouring the middle)

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static Image ResizeImageWithCrop(
	Image image,
	int width,
	int height
)

Parameters

image  Image
input image to be resized
width  Int32
output image width
height  Int32
output image height

Return Value

Image
The resized image
See Also