Resizes an image from a bitmap either based on the width or height depending on mode. Note image will resize to the larger of the two sides
public static Bitmap ResizeImageByMode(Bitmap bmp, int width, int height, ResizeModes resizeMode, InterpolationMode mode)
Return Value
resized or original bitmap. Be sure to Dispose this bitmap
Parameters
bmp
Bitmap to resize
width
new width
height
new height
resizeMode
mode
See also:
Class ImageResizer© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic