我正在编写一个程序,该程序使用16种颜色的调色板(每种颜色16位)来编辑gif图像.我的问题是保存为相同格式.当前正在使用>>>
I'm writing a program that edits a gif image with a 16 color pallete (16-bits per color). My problem is saving to the same format. Currently using>>>
bitmap.save(" new.gif" ;, ImageFormat .Gif)
bitmap.save("new.gif", ImageFormat.Gif)
我的问题是,即使输入位图具有正确的属性,当我执行此操作时,图像也不会保存为16色调色板.我也尝试过png和bmp,但是它们都可以产生32位图像.
my problem is that when i do this the image is not saved with a 16-color pallete even though the input bitmap has the correct attributes. I have also tried png and bmp but both of them produce a 32-bit image.
谢谢
推荐答案
16个调色板表示每种颜色4位.
16 color palette means 4 bits per color.
support.microsoft/default.aspx/kb/319061/本文显示了执行此操作的详细示例代码.
support.microsoft/default.aspx/kb/319061/ this article shows detailed example code for doing this.
更多推荐
另存为16color gif
发布评论