如何创建从dotnet的TIFF文件中的2位GIF [英] How to create a 2 bit gif from tiff file in dotnet
问题描述
我已经使用Bitmap类以TIFF转换为GIF,但它不能使图像2位可能有更少的大小。 请注意,Bitmap类可以创建与此像素格式的图像: 1,4,8,16,32,64(比特) 但是,我需要的是2位。 不幸的是GDI +不支持2bpp。 是否有任何来源或库这样做呢?
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?
推荐答案
GDI +只支持1bpp,4bpp,8bpp为GIF输出。尽管GIF规范允许其他颜色深度,它不是通过GDI +的支持。
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
这篇关于如何创建从dotnet的TIFF文件中的2位GIF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!