How to resize an image loaded from disk (C#)

Bitmap originalBmp = (Bitmap)Image.FromFile(filename);
Bitmap newBmp = new Bitmap(originalBmp, newSize);

where filename is the name of the file we want to load (including path - such as C://Images/Pic1) and newSize is the wanted size.

No comments: