xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: JSVGCanvas image buffer
Date Tue, 02 Aug 2005 09:39:19 GMT
Hi Javid,

Javid Alimohideen wrote:

> I want to extract the graphics from my JSVGCanvas and send it to another
> application's image buffer. I tried JSVGComponent.getOffScreen(), but the
> third party application displays nothing. Can someone tell me how to get the
> image buffer associated with the JSVGCanvas or JSVGComponent?

    This is the buffer the JSVGComponent is using for display,
but you may be grabbing it too soon.  It only has 'good data' in
it after the first GVT rendering completes.

> IS the following possible?
> JSVGCanvas canvas;
> canvas.renderer.getOffScreen().

    This is actually less reliable as the renderer may be in the
middle of rendering the image.

> P.S. I need the data buffer to be displayed by a third party C++
> application.
> 
> Thanks,
> Javid
> 
> 
> A clever person solves a problem.
> A wise person avoids it.
> 
> -- Einstein
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message