can't resize GIF file by Bitmap or Image class??
dear all,
By Bitmap or Image class, I can resize any image file then save to other format such as jpg, bmp... but with GIF format, the image file is distorted. May anyone help me to solve this problem?
Below is the snippet of code:
//the original size of Gif file is 276x110
Bitmap bmp1 = new Bitmap("c:\\logo.gif",false);
Bitmap bmp2 = new Bitmap(bmp1,138,55);
bmp2.Save("c:\\logo_resize.gif",System.Drawing.Imaging.ImageFormat.Gif);
Thank you so much,
Khanh
Replies
Know the answer? Post it — somebody with the same question will find it here.