Re: How to render embedded png?

Thomas DeWeese <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <CACTtnu2=1mweTfw=2FxujN+L8UoEiNpJ75h7s0kkhwJmkU4=xQ@mail.gmail.com>
You need to construct an SVG 'image' element (createElementNS) and set the
base64 encoded byte array as the xlink:href (setAttributeNS) (and set other
attributes as needed such as x, y, width, height) then insert the image
element into the SVG Document (appendChild).
Make sure you only modify the document in the UpdateManager's RunnableQueue.

Thomas

On Mon, Sep 10, 2012 at 3:23 AM, ali can <[email protected]> wrote:

> Thanks a lot, Jonathan, but getting this byte array, how I draw it on the
> SVG
> canvas?
> Is there any batik API or should I use the standard Java means?
> Thanks again.
> AC
>
>
>
>
> --
> View this message in context:
> http://batik.2283329.n4.nabble.com/How-to-render-embedded-png-tp4655236p4655240.html
> Sent from the Batik - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.