另存为16color gif

编程入门 行业动态 更新时间:2024-10-25 22:23:22
本文介绍了另存为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.

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

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

更多推荐

另存为16color gif

本文发布于:2023-07-27 03:06:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219975.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:另存为   gif   color

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!