如何将桌面屏幕捕获为.jpeg图像 [英] how to capture the desktop screen as .jpeg image
问题描述
大家好,
我们的应用程序在Client Server架构上运行;客户端使用VC ++开发,Server使用C#开发。希望将桌面屏幕(在客户端)捕获为".jpeg"。图像并需要通过TCP套接字连接将此图像发送到服务器应用程序
。基于捕获桌面屏幕获取示例代码为".bmp"。文件,但与".jpeg"相比,尺寸非常高。图片。所以任何人都有示例代码(C ++)然后请与我分享。
提前致谢。
RJ
只是一个想法 -
CImage类(使用GdiPlus)可以从捕获的bmp创建一个jpeg。
CImage ::保存方法可用于将jpeg写入IStream(或文件)。 您可以使用它来传输图像。
Hi All,
Our application is running on Client Server architecture; Client is developed with VC++ and Server is developed with C#. Wish to capture the desktop screen (on client side) as ".jpeg" image and need to send this image into server application through TCP socket connection. Getting the sample code based on capturing the desktop screen as ".bmp" file, but the size is very high compared to ".jpeg" image. So anyone have the sample code (C++) then kindly share with me.
Thanks in advance.
RJ
Just a thought -
The CImage class (uses GdiPlus) can create a jpeg from the captured bmp. The CImage::Save method could be used to write a jpeg to an IStream (or a file). You could use that to transmit the image.
这篇关于如何将桌面屏幕捕获为.jpeg图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!