看一看啦!给大家伙儿分享一个C#写的GIF制作工具!

看一看啦!给大家分享一个C#写的GIF制作工具!!
今天,自己做了一个GIF图像生成器,可以实现任意张图像生成GIF,很好用,给大家分享一下,资料搜集来自网络!!!
下面是界面图像和效果实例图: 
界面图:
看一看啦!给大家伙儿分享一个C#写的GIF制作工具!
实例图:
看一看啦!给大家伙儿分享一个C#写的GIF制作工具!
接着是源码下载地址: 
http://download.csdn.net/detail/trent1985/4745698看一看啦!给大家伙儿分享一个C#写的GIF制作工具!
部分源代码如下:
       #region variances
        private string curFileName = null;
        private Bitmap curBitmap = null;
        private List<string> pathString = new List<string>();
        private List<Bitmap> thumbnailImage = new List<Bitmap>();
        private List<Bitmap> srcImage = new List<Bitmap>();
        private Bitmap temp = null;
        private int count = 0;
        private int number = 0;
        private int deleteNumber = 0;
        #endregion

        #region Functions
        //Open Function
        public void OpenImage()
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = "所有图像文件 | *.bmp; *.pcx; *.png; *.jpg; *.gif;" +
                   "*.tif; *.ico; *.dxf; *.cgm; *.cdr; *.wmf; *.eps; *.emf|" +
                   "位图( *.bmp; *.jpg; *.png;...) | *.bmp; *.pcx; *.png; *.jpg; *.gif; *.tif; *.ico|" +
                   "矢量图( *.wmf; *.eps; *.emf;...) | *.dxf; *.cgm; *.cdr; *.wmf; *.eps; *.emf";
            ofd.ShowHelp = true;
            ofd.Title = "打开图像文件";
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                curFileName = ofd.FileName;
                try
                {
                    curBitmap = (Bitmap)System.Drawing.Image.FromFile(curFileName);
                    pathString.Add(curFileName);
                    srcImage.Add(new Bitmap(curBitmap));
                    if (curBitmap.Width >= curBitmap.Height)
                        temp = new Bitmap(curBitmap, new Size(100, (int)(100 * curBitmap.Height / curBitmap.Width)));
                    else
                        temp = new Bitmap(curBitmap, new Size((int)(100 * curBitmap.Width / curBitmap.Height), 100));
                    thumbnailImage.Add(new Bitmap(temp));
                    count++;
                }
                catch (Exception exp)
                { MessageBox.Show(exp.Message); }
            }
            DisplayImages();
        }
        //Save Function