Hi, I've recently started using Batik in attempts to solve some printing
speed issues we're having with images in an application at work. I've
successfully read about and implemented a simple SVG loader and viewer via
the JSVGComponent class. I get 'determinant is 0' exceptions with a
JSVGCanvas, and found out how JSVGComponent was more desirable for my
purposes after reading through various websites and this mailing list.

However, I wish to be able to render the SVG to a Graphics object just as I
might render an image or a line, so that I can easily merge it into the
printing code. I'm *not* looking to simply output SVG code, or anything like
that -- I want to render the graphic. No, I do not want to transcode the SVG
to an image first -- that would defeat my current purpose, which is to
render a vector graphic directly, rather than as an image (my theory is that
doing so will take up much less memory than an image, and thus printing will
be faster). Basically, the SVG is a check stub which is printed flush
against a check.

My problem is that whenever I do not add the JSVGComponent to a frame to
where it would be visible, calling a JSVGComponent's paint() method seems to
do nothing. Which I can somewhat understand -- if a component is not
visible, why should paint() do anything?

At any rate, I need to be able to render the SVG independent of a component.
Can somebody help me out here? I'm sure it's a simple process, but I need a
little push in the right direction. Thanks!

If it is of any use, I am using JDK 1.4 and Batik 1.5 beta 4.

--
Chuck Rector
Internet Exposure, Inc.
http://www.iexposure.com
[EMAIL PROTECTED]

Web Development - Web Marketing - ISP Services
(612) 676-1946


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to