sjs994 / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

Provide getImageData and putImageData for GWTCanvas #289

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you want to see this feature/enhancement implemented, please star this
issue by clicking on the star in the upper left hand corner of this page.

== Enhancement Description ==
Please provide support for getImageData and putImageData.
In order to do "the interesting stuff" with the canvas these methods are
indispensable.

Original issue reported on code.google.com by panzerlu...@gmail.com on 6 Jul 2009 at 11:47

GoogleCodeExporter commented 8 years ago
Fast pixel-level manipulation is critical. See this example:
http://hezamu.virtuallypreinstalled.com/CanvasMandelbrot

It renders the Mandelbrot set with GWTCanvas using rects, and is way too slow 
to be
interesting.

For more info see http://vaadin.com/forum/-/message_boards/message/52005

Original comment by henri.mu...@gmail.com on 6 Aug 2009 at 7:24

GoogleCodeExporter commented 8 years ago
FYI, I extended GWTCanvas to provide getImageData and putImageData, it was 
pretty
simple, see:
http://dev.vaadin.com/svn/contrib/CanvasMandelbrot/src/com/vaadin/contrib/canvas
mandelbrot/client/ui/MouseHandlingCanvas.java
and
http://dev.vaadin.com/svn/contrib/CanvasMandelbrot/src/com/vaadin/contrib/canvas
mandelbrot/client/ui/CanvasPixelArray.java

Works for FF3.5 but for some reason Chrome 3 draws only a black screen. 

The work was done for a client-side Mandelbrot renderer for the Vaadin 
framework. See
the links in the previous message and http://www.vaadin.com for more info.

Original comment by henri.mu...@gmail.com on 13 Aug 2009 at 9:02