#1883 Create an image from canvas content

fraya Wed 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 Wed 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 Signup to reply.