问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/2750091/how-to-create-a-2-bit-gif-from-tiff-file-in-dotnet