Click here to Skip to main content
Click here to Skip to main content

How to convert BMP to GIF in C#

By , 1 Dec 2010

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

2 Dec 2010  
Kevin Marois
 
Very nice work. I would add a bit of reformatting and place it in all in method:public static void BitmapToGIF(string BitmapFile, string GIFFile){ using (Bitmap bitMap = new Bitmap(BitmapFile)) { //var codecInfo = GetEncoderInfo(ImageFormat.Gif); var...
19 Dec 2010  
Kanasz Robert 3 alternatives  
 
How to convert BMP to GIF in C#
21 Dec 2010  
johannesnestler
 
I think your solution is good if I have to control quality, compressionetc.For a fast conversion I do just this.Bitmap bmp = new Bitmap(@"C:\Example.bmp");bmp.Save(@"C:\Example.gif", ImageFormat.Gif);

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Andrew Rissing
Software Developer (Senior)
United States United States
Since I've begun my profession as a software developer, I've learned one important fact - change is inevitable. Requirements change, code changes, and life changes.
 
So..If you're not moving forward, you're moving backwards.

| | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 1 Dec 2010
Article Copyright 2010 by Andrew Rissing
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid