You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by "K, Balamurugan (CORP, GEITC)" <Ba...@geind.ge.com> on 2002/05/21 05:37:28 UTC
Problem in printing.
Hi,
I have an application which takes shows SVG files as icons by
rasterizing(converting it as bufferedimage) the svg. But when i print those
svg file through my application the images are not clear. I am attaching an
example file generated by the application. I feel because all the images are
in image format this thing is happening.
I saved the my application can save the screen as SVG then i opend
that file using SVG Browser, i printed the SVG still same problem i am
facing.
Thanks in advance. Can any one help me regarding this.
Bala
<<sample.svg>>
"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."
Problem in printing.
Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "KB" == K, Balamurugan (CORP, GEITC) <Ba...@geind.ge.com> 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: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org