Changing image data of a canvas has not effect

12 views
Skip to first unread message

omar.belkhodja

unread,
Sep 1, 2011, 12:24:49 PM9/1/11
to google-we...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages