Thursday, September 1, 2011

Changing image data of a canvas has not effect

The following code has no effect. Any idea why ?

ImageData imageData = context2d.getImageData(0, 0, 100, 100);

for(int j = 0; j < 100; j++)
for(int i = 0; i < 100; i++)
imageData.setRedAt(255, i, j);


Thanks,
Omar

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nLHj4rVlaOIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment