Resizes an image from a bitmap. Note image will resize to the larger of the two sides
public static Bitmap ResizeImage(Bitmap bmp, int width, int height, 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
mode
Overloads:
public static Bitmap ResizeImage(string filename, int width, int height, InterpolationMode mode)
public static Bitmap ResizeImage(Byte[] data, int width, int height, InterpolationMode mode)
public static bool ResizeImage(string filename, string outputFilename, int width, int height, InterpolationMode mode, int jpegCompressionMode)
See also:
Class ImageUtils© West Wind Technologies, 1996-2020 • Updated: 07/15/20
Comment or report problem with topic