Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QSvgRenderer antialiasing seems not working

$
0
0
Hi all, I have an svg image and I need to scale it using QPainter & QImage. The final image is redered using QSvgRenderer. However, there is no change at the output image even though I apply anti aliasing. Could you please guide me to find the mistake? void DrawImage(QImage &image) {     QPainter *myQPainter = new QPainter(&image);     QSvgRenderer *mySvgImg = new QSvgRenderer("svgimage");   //Some scaling stuff       myQPainter->setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform | QPainter::HighQualityAntialiasing);       QRect myrectangle(500, 500, 600, 600);     mySvgImg ->render(myQPainter,myrectangle);       myQPainter ->end(); }

Viewing all articles
Browse latest Browse all 18427

Trending Articles