views:

103

answers:

1

Hi, I have used Bitmap class to convert tiff to Gif but it couldn't make the image 2 bit possible for have less size. Notice that bitmap class could create images with this pixel format : 1, 4, 8, 16, 32, 64 (bits) But my need is 2 bit. Unfortunately Gdi+ do not support 2bpp. Is there any source or library to do that?

A: 

GDI+ only supports 1bpp,4bpp,8bpp for GIF output. Although the GIF specs allow other color depths, it's not supported by GDI+.

http://msdn.microsoft.com/en-us/library/system.drawing.imaging.pixelformat.aspx

Philippe Leybaert
what can i do to use 2bpp? there is nothing in them for 2bit (2bpp)!
Shahrooz Kia
Your only option is to use a third-party library, or write the code for saving to a GIF file yourself
Philippe Leybaert