On Sun, Feb 8, 2009 at 10:17 AM, Dov Grobgeld
<dov grobgeld gmail com> wrote:
Here's another idea that I use in my program giv. Whenever I am painting an object on screen, I am painting the same object in an off-screen image with the same drawing commands but with "color" that is a combination of R,G,B that encode the index of the object. The important catch is that you have to turn off anti-aliasing for this to work. During motion events I then extract the corresponding pixel from the off-screen image, decode the R,G, and B to get the index of the object, which points to a vector of properties that I show.
Regards,
Dov