I need to get the color of a pixel in a window that does not necessarily have a canvas object. This use to work: currentColor=tabletop.graphics.pixel(x,y).
The pixel may be within any number of canvases or objects. Jason K offered a partial solution, except I do not use a mouse action event. He used the following
dim s as new Shell
s.Execute “screencapture -c -x”
dim clip as new Clipboard
dim p as picture = clip.Picture
dim rgbs as RGBSurface = p.RGBSurface
dim c as color = rgbs.Pixel(system.Mousex, system.mousey)
'Break //c is the color under the mouse
theColor = c
maybe there is an easier way?