Andreas Neumann wrote:
>
> Hi Peppe,
>
> http://www.carto.net/papers/svg/manipulating_svg_with_dom_ecmascript/index.shtml
>
> contains a tutorial on how to manipulate the DOM with Javascript.
> Althought this targets ECMAScript, the same methods also apply to Java.
>
> In your example, the bbox does not really exist. It is a SVGRect object
> (with x,y,width,height) properties. You need to add your new image
> somewhere in the DOM, using methods like .appendChild() or
> .insertBefore(). Be aware that images use the xlink namespace when you
> specify the "href" attribute. You have to explicitly set the namespace
> for this attribute, e.g.
>
> image.setAttributeNS("http://www.w3.org/1999/xlink","href","myImage.png");
>
> Hope this helps,
> Andreas
>
>
i don't add a rect image, i need to add six arrows (that are 6 jpeg file)
around the bbox's border. So, i need to add all object properties
(x,y,width, height) but then i need to add these arrow around the bbox
--
View this message in context:
http://www.nabble.com/add-image-to-bounding-box-tf2773398.html#a7736788
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]