另存为16color gif [英] saving as a 16color gif

查看:81
本文介绍了另存为16color gif的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序,该程序使用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.

http://support.microsoft.com/default.aspx/kb/319061/本文显示了执行此操作的详细示例代码.

http://support.microsoft.com/default.aspx/kb/319061/  this article shows detailed example code for doing this.


这篇关于另存为16color gif的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆