专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > VB Dotnet

在vb.net中怎么替换色彩模式

发布时间:2011-06-23 15:58:14 文章来源:www.iduyao.cn 采编人员:星星草
在vb.net中如何替换色彩模式?
开始的时候我定义图片框的image层drawpic.Image   =   New   System.Drawing.Bitmap(Me.Width,   Me.Height,   Imaging.PixelFormat.Format32bppArgb)   指定图像中每个像素的颜色数据的格式Format32bppArgb,但是现在我想把指定图像中每个像素的颜色数据的格式换成Format4bppIndexed,我的思路是我新建一个bitmap=New   System.Drawing.Bitmap(Me.Width,   Me.Height,   Imaging.PixelFormat.Format4bppIndexed),在将以前的图片付给新建的bmp,但是最后保存下来的图片的每个像素的颜色数据的格式仍是Format32bppArgb,请大家指教阿!!!!

------解决方案--------------------
dim bitmap as New System.Drawing.Bitmap(Me.Width,Me.Height,Imaging.PixelFormat.Format4bppIndexed)
dim g as graphics = graphics.fromimage(bitmap)
g.drawimage(drawpic.image,.........)
------解决方案--------------------
我帮顶,分给我吧~
------解决方案--------------------
你要把它灰度化?
------解决方案--------------------
末班车!
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: