[Qt-interest] render svg into QImage

Alessandro Portale alessandro.portale at nokia.com
Tue Jan 18 16:02:30 CET 2011


On 1/18/2011 3:51 PM, ext William Tambellini wrote:
> I am rendering a svg file into a QImage.
 > ...
> Despite lot of trials playing with nearly all the options of Renderer,
> Image and Painter, the image is STILL antialiased whereas I want a raw
> NON antialiased image.
> ...
> -Cant this engine draw image WITHOUT antialliasing feature ?

Unfortunaltely, antialiasing is forced in the QSvgTinyDocument::draw() 
functions.

 
http://qt.gitorious.org/qt/qt/blobs/4.7/src/svg/qsvgtinydocument.cpp#line230

...and I do not know of an easy way to work around that. Sorry :/

> -Is it a bug ?

That can imho easily count as a bug, and would make a good entry in 
bugreports.qt.nokia.com

Best Regards,
Alessandro



More information about the Qt-interest-old mailing list