private void Button1_Click(object
sender, EventArgs e)
{
try
{
Image img1 = default(Image);
img1 = Image.FromFile("C:\\2.gif");
img1.RotateFlip(RotateFlipType.Rotate180FlipX);
img1.Save("C:\\2_Rotate180FlipX.Png",System.Drawing.Imaging.ImageFormat.Png);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
} } |