Review the code snippet before inserting it on your project.
private static Bitmap ResizeBitmap(Bitmap sourceBMP, int width, int height ) { Bitmap result = new Bitmap(width, height); using (Graphics g = Graphics.FromImage(result)) g.DrawImage(sourceBMP, 0, 0, width, height); return result; }
With from Barcelona