Resolution of screenshot is low in qtbrowser
-
Hi,
I am using the following code to take screenshots from qtbrowser.But resolution of the image captured is low when compared to the orginal image.
@void MainWindow::saveFrame(QWebFrame *frame)
{
QImage image(frame->contentsSize(), QImage::Format_ARGB32_Premultiplied);
image.fill(Qt::transparent);QPainter painter(&image); painter.setRenderHint(QPainter::Antialiasing, true); painter.setRenderHint(QPainter::TextAntialiasing, true); painter.setRenderHint(QPainter::SmoothPixmapTransform, true); frame->render(&painter);
image.save("./CAPTUREIMAGES/"+fileName,"JPG")
}@
what is the reason behind this