图像质量缩放VB.NET [英] image quality scaling VB.NET

查看:67
本文介绍了图像质量缩放VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有问题.我创建了两个程序(客户端和服务器),使我可以查看远程PC的桌面.问题在于捕获屏幕图像质量太高,因为图片的发送有点慢.有没有办法降低图像质量?当图像对我来说是32位,8位时,重要的是发送速度更快.谢谢大家!

Hello everyone, I have a problem. I created two programs (client and server) that allow me to view the desktop of a remote pc. The problem is that capturing the screen image quality is too high because the sending of the picture is a bit slow. There would be a way to decrease the image quality? When the images are 32-bit, 8 bits basterebbeanche to me, the important thing is that sending is faster. Thanks everyone!

推荐答案

您可以将它们从位图转换为JPG流:
You could convert them from Bitmap to a JPG stream:
MemoryStream ms = new MemoryStream()
myImage.Save(ms, ImageFormat.Jpeg)

然后发送流内容.


您好,但是我不需要保存图像,因为一旦捕获,便立即将其转换为字节然后发送.
hello, but I do not need to save the image, because as soon as I catch once I convert it into bytes and then send it.


我仍然没有解决,在Google上找不到适合我的任何东西,没有人有解决方案?
I still have not solved, can not find anything on google that is right for me, nobody has a solution?


这篇关于图像质量缩放VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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