[EMAIL PROTECTED] wrote:
I've been playing with J2D for a few weeks and Batik for a few days and
this is what I'm trying to do and not succeeding. The root of the problem
is I've got a SVGGraphics2D object with objects already drawn in it and I
want to get it drawn to the screen. The branches of the problem are that
I have other things I want to draw on the screen as well, so I can't
simply call paintComponent(mySVG2D).
I would probably just subclass JSVGCanvas to draw the extra
stuff before/after calling the baseclass paint method.
The reason I'm using SVGGraphics2D is it already stores the style data for
each object, so it's easy to change colors, remove objects, etc. outside
of the drawing function, plus I want to load and save in SVG. I can write
an SVGImageBuffer that wraps the SVGGraphics2D object in a BufferImage,
and thus draw that, but I was wondering, in general, when you've got two
Graphics objects, is there a way to combine them together?
In this case at least no. You need something to render the
contents of the SVG document that is generated (you really aren't
just 'playing back' the original draw commands because you want to
change the SVG Document - not that this would make much difference
really).
I've looked at the slideshow demo, but I couldn't get it to work in this
context--it would only draw the very first time and would return a null
BufferedImage every time after.
Well there must be something wrong in your code as clearly the code is
capable of rendering multiple documents in succession.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]