Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Saving GIF and BMP images in C#

Posted on 2006-07-19
4
Medium Priority
?
977 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
ID: 17143858

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 200 total points
ID: 17143926
0
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 200 total points
ID: 17143931
0
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 200 total points
ID: 17143936
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

824 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