SVGDocument svgDocument = ... // Your document.
SVGOMDocument omDocument = (SVGOMDocument) svgDocument;
omDocument.setURLObject(new
File("/path/you/want/the/current/folder/to/be/").toURL());

Michael Bishop

> -----Original Message-----
> From: Jan Willem Lokin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 24, 2007 8:10 AM
> To: [email protected]
> Subject: Re: How to get an image into an SVG document?
> 
> Cameron,
> 
> Thanks for the pointer. That's a useful document.
> 
> The exception is now gone, but I get a broken-link image, 
> rather than the given image. I guess it must have to do with 
> JSVGCanvas's notion of current document/folder/directory.
> 
> Any ideas, anyone?
>  
> -+- Jan Willem Lokin -+-
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection 
> around http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> 

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

Reply via email to