Hi,
I have a requirement where image has to be uploaded to a folder and show it in image control. When uploading the image i have resized the image through code and saved it in a folder. The code is as follow
Stream src = fuUpload.PostedFile.InputStream;
string dest = Server.MapPath("~/folder/" + filename);
System.Drawing.Image img = System.Drawing.Image.FromStream(src);
Bitmap target = new Bitmap(width, height);
Graphics graphics = Graphics.FromImage(target);
graphics.SmoothingMode = SmoothingMode.HighQuality;
graphics.CompositingQuality = CompositingQuality.HighQuality;
graphics.InterpolationMode = InterpolationMode.High;
Rectangle r ...
Go to the complete details ...