protected void Button2_Click1(object sender, EventArgs e) { string abc = Server.MapPath(Image2.ImageUrl.Replace("/", "\\")); System.Drawing.Image img = System.Drawing.Image.FromFile(abc); img.RotateFlip(System.Drawing.RotateFlipType.Rotate90FlipNone); //re-save the picture as a Jpeg img.Save(abc, System.Drawing.Imaging.ImageFormat.Jpeg); //tidy up after we've finished img.Dispose(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)