How to create a 2 bit gif from tiff file in dotnet

∥☆過路亽.° 提交于 2019-12-12 01:35:00

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!