本文介绍了如何在linux中快照 - 以编程方式C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前参与一个项目,需要我反复拍摄屏幕的快照。我使用qt的grabScreen函数做同样的。
每次程序拍摄快照时屏幕会冻结半秒,导致计算机似乎很慢:(

I am currently involved in a project which requires me to repeatedly take snapshots of the screen. I am using qt's grabScreen function to do the same.The screen freezes for half a second every time the program takes a snapshot causing the computer to seem to be very slow :(

任何人都可以建议我更好这样做的方法?

Can anybody suggest me a better method of doing this ?

推荐答案

你可以看看 ksnapshot 这是基于Qt的KDE应用程序,它的SVN存档是。

You could look at the source of, say, ksnapshot which is the Qt-based KDE app doing this. Its SVN archive is here.

这篇关于如何在linux中快照 - 以编程方式C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 16:25