Re: Add IMAGE from BufferedImage into a loaded SVG Document

2005-02-14 Thread Andres Toussaint
Thomas, thanks, this is a great simple approach. I will give it a try. Just for the record, the approach solution indicated in the initial question does work also, but of course it is not as simple. Andres. On Feb 14, 2005, at 10:59 AM, Thomas DeWeese wrote: Andres Toussaint wrote: My Main quest

Re: Add IMAGE from BufferedImage into a loaded SVG Document

2005-02-14 Thread Thomas DeWeese
Andres Toussaint wrote: My Main question is: How is the best way to add this image into my document? Encode it as a PNG and include it in the xlink:href using the data protocol. This is what the code below does (very indirectly). The code to do this more directly (take from batik.svggen.Im

Add IMAGE from BufferedImage into a loaded SVG Document

2005-02-13 Thread Andres Toussaint
I want to add a thumbnail representation of my SVG document in the same document when a specific tool is selected, something like this: 1. Change "display" Atribute of TOOL handler layer to "inline" (to trigger a updateManager event) 2. Catch updateCompleted(UpdateManagerEvent e) 3. Get the