Hi,

 

Does batik internally use the builder to build GraphicsNodes or does it always use Documents?  I have tried to build GraphicsNodes from Elements but was unsuccessful until I copied a piece of code from the build(Document, …) method.  The build(Element, …) method in GVTBuilder misses some document initialization calls, see attached implementation, which after adding the build method works smoothly.

 

I have been using this to build child GraphicsNodes of an SVG document so that I can rasterize fragments of it.  However, so far its been pretty unsuccessful because all of the 'g' elements have been the wrong size and all the shape nodes (mostly 'polygon') have appeared as black images (although they do seem to be the right size).

 

Can anyone think of a good way to rasterize parts of an SVG document, or a path to develop this functionality with batik?

 

Jon

 

 

Attachment: MyGVTBuilder.java
Description: Binary data

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

Reply via email to