[EMAIL PROTECTED] wrote:
> Hi,
>
> I was trying something with the Jambi svg packages and ran into
> an issue.
> I'm trying to read a SVG image, manipulate it and write back a
> new SVG image.
> I can do it with the below code (thanks to QT mailing lists)
>
> QSvgGenerator svgGenerator = new QSvgGenerator();
> svgGenerator.setFileName("c:/myImage.svg");
> QPainter svgPainter = new QPainter(svgGenerator);
> graphicsScene.render(svgPainter);
> svgPainter.end();
>
> But the problem is that the resultant image has a bitmap
> embedded in it and so is not scalable.
> I also know that QT supports only the static features of SVG 1.2
> Tiny, so no DOM manipulation etc. 2 questions,
> 1. Is DOM manipulation on QT's roadmap?
Not for SVG, no.
> 2. Is there any way that I can get a scalable SVG image
> generated by using only QT Jambi.
Does the original .svg contain a bitmap, then there is no way for us to
vectorize that. You could split it into rects or run some pixel ->
vector path algorithm on it, but the result wouldn't neccesarily be any
good ;)
I also see from the code that the svg generator doesn't support the
pattern brushes, perspective transforms, conical gradients or
composition modes, so if the original svg is using those, the operations
using these features will be written to the svg as an image. So if you
are using any of the above listed features, then could avoid an image
being generated in these cases.
best regards,
Gunnar
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest