>>>>> "KB" == K, Balamurugan (CORP, GEITC) <[EMAIL PROTECTED]> writes:
KB> I have an application which takes shows SVG files as icons by
KB> rasterizing(converting it as bufferedimage) the svg. But when i
KB> print those svg file through my application the images are not
KB> clear. I am attaching an example file generated by the
KB> application. I feel because all the images are in image format
KB> this thing is happening.
Yes, once you draw the SVG to a BufferedImage it's SVGness is
lost... We have no way of knowing that the contents of this
BufferedImage originally came from an SVG file. If you want the icons
drawn as SVG you will have to draw the SVG directly.
Unfortunately in this case it probably means you will need two
code paths, one where you draw the BufferedImage icons (presumably for
speed?) and one where you render the icon's GVT tree's directly to the
destination graphic.
You might also consider building SVG into your application more
deeply and instead of just using it to create icons then remembering
where you are supposed to be drawing these icons, add 'use' elements
to an SVG document and just let the JSVGCanvas handle all your
rendering. This will give you panning/zooming/rotation for free in
addition to high quality SVG output.
KB> I saved the my application can save the screen as SVG then i opend
KB> that file using SVG Browser, i printed the SVG still same problem
KB> i am facing.
KB> Thanks in advance. Can any one help me regarding this.
KB> Bala
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]