Take Screenshots
Header:
#include <OpenFlipper/BasePlugin/RPCInterface.hh>
: public RPCInterface
Q_INTERFACES(RPCInterface)
Source:
// Take viewer snapshot
std::vector<QScriptValue> params =
{
dir + QDir::separator() + filename + ".png",
false, false, false, false,
settings.screenshot_width, settings.screenshot_height, true,
true, 16, true };
QCoreApplication::processEvents();
emit updateView();
QCoreApplication::processEvents();
RPC::callFunction(QString("core"), QString("viewerSnapshot"), params);
Edited by Jan Schnathmeier