[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 978
  • Last Modified:

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
0
Ramesh4u
Asked:
Ramesh4u
3 Solutions
 
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
 
MuhammadAdilCommented:
0
 
Mohammed NasmanSoftware 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

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now