fredsa / forplay

Automatically exported from code.google.com/p/forplay
Apache License 2.0
12 stars 4 forks source link

Add Canvas.pixel() method to perform pixel read-back #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
int pixel(int x, int y) can be really useful for hit-testing. Canvas is 
typically software-rendered, so there's no compelling reason not to allow 
read-back of pixel values (as long as you don't try to do too much pixel 
manipulation in script code).

This would *not* make sense on Surface, however, because it can be backed by a 
GL framebuffer, which is quite expensive to read back.

Original issue reported on code.google.com by jgw@google.com on 27 May 2011 at 1:49

GoogleCodeExporter commented 9 years ago
Issue 21 has been merged into this issue.

Original comment by jgw@google.com on 28 May 2011 at 1:06