c#.net-Save Image in your Format Like JPEG, BMP, PNG, TIFF etc...
This code will show you that how you can save selected image into your format at you location...
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());
} } |