dtkmultimedia
DTK Multimedia module
载入中...
搜索中...
未找到
dscreenshot.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DSCREENSHOT_H
6#define DSCREENSHOT_H
7
8#include <QObject>
9#include <dtkmultimedia.h>
10
11DMULTIMEDIA_BEGIN_NAMESPACE
12class DScreenShotPrivate;
13class DScreenShot : public QObject
14{
15 Q_OBJECT
16 Q_DECLARE_PRIVATE(DScreenShot)
17public:
18 explicit DScreenShot(QObject *parent = nullptr);
20
21 QPixmap fullScreenShot();
22
23 QPixmap screenShot(const QPoint point, const QSize size);
24
25protected:
26 QScopedPointer<DScreenShotPrivate> d_ptr;
27};
28DMULTIMEDIA_END_NAMESPACE
29#endif // DSCREENSHOT_H
DScreenShot类提供截图相关接口.
Definition dscreenshot.h:14
QPixmap fullScreenShot()
获取全屏截图.
QPixmap screenShot(const QPoint point, const QSize size)
获取指定位置区域截图.