Re: Newbie: How to render an SVG into an image

2005-03-01 Thread Thomas DeWeese
Glen Simmons wrote: On Tue, 01 Mar 2005 07:09:16 -0500, Thomas DeWeese <[EMAIL PROTECTED]> wrote: I would look carefully at the stack trace that is creating menus to try and figure out who is trying to create them. Here's the stack trace when calling JSVGComponent.loadSVGDocument: JavaBug> bt

Re: Newbie: How to render an SVG into an image

2005-03-01 Thread Glen Simmons
On Tue, 01 Mar 2005 07:09:16 -0500, Thomas DeWeese <[EMAIL PROTECTED]> wrote: > Glen Simmons wrote: > > OK, I guess I spoke too soon. I tried the code below in a Cocoa-Java > > app and it hangs. I checked with the debugger and it's hanging down in > > some Swing code that's trying to instantiate me

Re: Newbie: How to render an SVG into an image

2005-03-01 Thread Thomas DeWeese
Glen Simmons wrote: OK, I guess I spoke too soon. I tried the code below in a Cocoa-Java app and it hangs. I checked with the debugger and it's hanging down in some Swing code that's trying to instantiate menus. This is a problem because there are already menus. The JSVGComponent does _not_ crea

Re: Newbie: How to render an SVG into an image

2005-02-28 Thread Glen Simmons
OK, I guess I spoke too soon. I tried the code below in a Cocoa-Java app and it hangs. I checked with the debugger and it's hanging down in some Swing code that's trying to instantiate menus. This is a problem because there are already menus. So I tried to implement the basics of what JSVGComponent

Re: Newbie: How to render an SVG into an image

2005-02-25 Thread Glen Simmons
Wow, thanks. This is exactly what I need. Glen On Fri, 25 Feb 2005 14:47:45 -0500, Andres Toussaint <[EMAIL PROTECTED]> wrote: > The best option is to render the image in a JSVGComponent, and once it > is available, encode it as a PNG. > > The basic idea is to intercept the gvtRenderingComplete

Re: Newbie: How to render an SVG into an image

2005-02-25 Thread Andres Toussaint
The best option is to render the image in a JSVGComponent, and once it is available, encode it as a PNG. The basic idea is to intercept the gvtRenderingCompleted event to recover the BufferedImage, and then encode this image to something your Cocoa App can handle, like a PNG. If your source is fr