如何将32bppargb的bmp转换为16bpp的bmp. [英] How to convert a bmp of 32bppargb to a bmp of 16bpp.

查看:76
本文介绍了如何将32bppargb的bmp转换为16bpp的bmp.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

远程桌面控制程序需要将bmp从服务器传输到客户端,以充分利用带宽,减小图像大小.我想减小bmp的颜色深度.
如何将24bpp,32bpp的bmp转换为8bppIndexed的bmp,​​即使将64bpp转换为8bppIndexed的bmp?原始图像.



创建位图的副本并将其作为GIF图像保存到MemoryStream. GIF图片为8bpp.


Remoting desktop controlling program needs to transfer a bmp from server to client,to make good use of the bandwidth,reduce the size of the image.I want to reduce the color depth of a bmp.
How to convert a bmp of 24bpp,32bpp,even if 64bpp to a bmp of 8bppIndexed?

解决方案

Create a bitmap with the desired color depth as the destination bitmap and copy the original image to it.


hi
create a copy of the bitmap and save it to a MemoryStream as a GIF image. GIF images are 8bpp.


这篇关于如何将32bppargb的bmp转换为16bpp的bmp.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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