Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.489 kb
#include "Render.h"
#include "WebPage.h"
#include "WebPageManager.h"
Render::Render(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}
void Render::start() {
QString imagePath = arguments()[0];
int width = arguments()[1].toInt();
int height = arguments()[2].toInt();
QSize size(width, height);
page()->setViewportSize(size);
bool result = page()->render( imagePath );
emit finished(new Response(result));
}
Jump to Line
Something went wrong with that request. Please try again.