我正在使用rotateflip来旋转图像并保存在服务器上,以下是代码:
using (Image image = Image.FromFile(HttpContext.Current.Server.MapPath("~/Content/Job_Files/" + Job_ID + "/" + new_str + "/Images/" + path)))
{
//rotate the picture by 90 degrees and re-save the picture as a Jpeg
if (cbox_id == "cboxRight")
{
image.RotateFlip(RotateFlipType.Rotate90FlipNone);
}
else
{
image.RotateFlip(RotateFlipType.Rotate90FlipNone);
}
image.Save(new_path, System.Drawing.Imaging.ImageFormat.Jpeg);
image.Dispose();
}
单击右旋转时,图像会向右旋转,但左旋转无效。如何旋转它?