Resizes an image from byte array and returns a Bitmap. Make sure you Dispose() the bitmap after you're done with it!
public static Bitmap ResizeImage(Byte[] data, int width, int height, InterpolationMode mode)
Parameters
data
width
height
mode
Overloads:
public static Bitmap ResizeImage(string filename, int width, int height, InterpolationMode mode)
public static bool ResizeImage(string filename, string outputFilename, int width, int height, InterpolationMode mode, int jpegCompressionMode)
public static Bitmap ResizeImage(Bitmap bmp, int width, int height, InterpolationMode mode)
See also:
Class ImageUtils© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic