Steve Lamont wrote:
I want to insert an BufferedImage, which only exists in memory and not
in an external file, into an SVG document for display and
manipulation. I don't want or need to ever write the resulting
document out.
You mention 'manipulate' in this case you probably need this
to exist on the SVG side. You can do this by encoding the
Image into a JPEG or PNG and base64 encoding it and including
that data as a 'data:' protocol on an image xlink:href. However
the entire image will have to be encoded and then decoded to
make this work.
Can someone be so kind as to give me a leg up on this? I've looked at
SVGImageElement and it's ilk but haven't the slightest clue as to how
to stuff a BufferedImage or anything similar into them.
You can't because not surprisingly SVG as a document format
doesn't handle this concept. You can just stuff a buffered image
into a GVT RasterImageNode however it will have no peer in the
SVG and there are some cases where it may 'go away' because the
graphics tree is rebuilt from the SVG.
This seems like it should be a simple, straightforward thing but
either I'm too dense to figure it out or it's hidden in some obscure
corner of the documentation.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]