Solved

Saving GIF and BMP images in C#

Posted on 2006-07-19
4
914 Views
Last Modified: 2008-02-01

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
Comment
Question by:Ramesh4u
4 Comments
 

Author Comment

by:Ramesh4u
Comment Utility

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
 
LVL 6

Assisted Solution

by:MuhammadAdil
MuhammadAdil earned 50 total points
Comment Utility
0
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 50 total points
Comment Utility
0
 
LVL 22

Accepted Solution

by:
mnasman earned 50 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now