Save Image In Your Specific Format

By Goniey N (Mr. G)

You Can Save Your Image Into Particular User Format Like Save As...

private void BtnSaveAsImage_Click(object sender, EventArgs e)
{
     try      
     {            
         Image MyImage = default(Image);            
          MyImage = Image.FromFile("C:\\2.gif");

          //Here You Can Specify your image Foramte Like Png, Gif, jpeg, Bmp etc...
          MyImage.Save("C:\\" + txtSaveAsImage.Text + ".Png",System.Drawing.Imaging.ImageFormat.Png);
     }
     catch (Exception ex)      
     {
          MessageBox.Show(ex.ToString());
     }
}

Save Image In Your Specific Format  (1428 Views)