|
QGroundControl
Ground Control Station for MAVLink Drones
|
Renders a QML scene into an offscreen RHI texture and reads it back to a QImage. More...
#include <QGCOffscreenRenderer.h>
Inheritance diagram for QGCOffscreenRenderer:
Collaboration diagram for QGCOffscreenRenderer:Public Member Functions | |
| QGCOffscreenRenderer (QObject *parent=nullptr) | |
| ~QGCOffscreenRenderer () override | |
| bool | load (const QUrl &qmlSource, const QSize &pixelSize) |
| QImage | renderToImage () |
| bool | isValid () const |
Renders a QML scene into an offscreen RHI texture and reads it back to a QImage.
Definition at line 21 of file QGCOffscreenRenderer.h.
|
explicit |
Definition at line 18 of file QGCOffscreenRenderer.cc.
|
override |
Definition at line 20 of file QGCOffscreenRenderer.cc.
|
inline |
Definition at line 33 of file QGCOffscreenRenderer.h.
| bool QGCOffscreenRenderer::load | ( | const QUrl & | qmlSource, |
| const QSize & | pixelSize | ||
| ) |
Definition at line 70 of file QGCOffscreenRenderer.cc.
References error.
| QImage QGCOffscreenRenderer::renderToImage | ( | ) |
Definition at line 126 of file QGCOffscreenRenderer.cc.