Fantom

Login | Register

Create an image from canvas content

frd
25 Apr 2012

With SWT, I want to save the contents of a Canvas like an jpeg or png image. Looking at gfx::Image#makePainted I wonder if it is possible to do it with this method. Any example?

Thanks

brian
25 Apr 2012

There isn't any hook to do that in SWT today (there is a undocumented hook to do it in JS though). Assuming SWT has that functionality, would definitely be nice to get a patch to implement it.

Login or Register to Reply

Back | All Topics