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: 15.0.2.11458
Syntaxpublic static Image ResizeImageWithCrop(
Image image,
int width,
int height
)
Parameters
- image
- Type: System.DrawingImage
input image to be resized - width
- Type: SystemInt32
output image width - height
- Type: SystemInt32
output image height
Return Value
Type:
ImageThe resized image
See Also