mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
eb4170c316
Former-commit-id: 7e665ef0cd63f66c34ba2b441cafe34689358f3a
21 lines
401 B
C++
21 lines
401 B
C++
|
|
// STL includes
|
|
#include <iostream>
|
|
|
|
// QT includes
|
|
#include <QApplication>
|
|
#include <QDesktopWidget>
|
|
#include <QPixmap>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
QPixmap originalPixmap = QPixmap::grabWindow(QApplication::desktop()->winId());
|
|
|
|
std::cout << "Grabbed image: [" << originalPixmap.width() << "; " << originalPixmap.height() << "]" << std::endl;
|
|
|
|
return 0;
|
|
}
|