void Resize(int xSize, int ySize) { scaledBitmap = ImageResizer.ResizeBitmap(bitmap, xSize, ySize, targetImageFormat); }
public static Bitmap CreateResizedBitmap(Bitmap image, int width, int height, ImageFormat format) { return(ImageResizer.ResizeBitmap(image, width, height, format)); }