Saving GIF and BMP images in C#


Hi all,

I am implementing a saveImage dialog box and would like to know how to save GIF and BMP file to a specific directory ?

any sample code is appreciated.

Ramesh
Ramesh4uAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Mohammed NasmanConnect With a Mentor Software DeveloperCommented:
Hi Ramesh,

  For easy way, you could convert easily like the following

      Image img= Image.FromFile("c:\\img.bmp");
      img.Save("c:\\img.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);

Regards,
Mohammed Nasman
0
 
Ramesh4uAuthor Commented:

Actually I also want to know how to covert programmatically from one image format  to another.

I should be able to do the convertion among jpeg, bmp, and gif.

Ramesh
0
 
MuhammadAdilConnect With a Mentor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.