Namespace required: using System.IO; using System.Drawing; using System.Drawing.Drawing2D; — .cs page coding on Save button—————– // Create a new bitmap which will hold the previous resized bitmap Bitmap newBMP = new Bitmap(originalBMP, newWidth, newHeight); // Create a graphic based on the new bitmap Graphics oGraphics = Graphics.FromImage(newBMP); // Set the properties for the new graphic …
Resize image while uploading image
