0
Reply

can not resize GIF file by Bitmap or Image class?

khanhkv2002

khanhkv2002

Jan 28 2004 7:18 PM
1.6k
hi 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