[Gambas-user] Find color on point in drawingarea
ron
ronstk at ...239...
Sun May 21 11:19:39 CEST 2006
Hi all,
Any bode who know how to get the color information of a point
in the DrawingArea ?
In this area I have drawn several lines where the x/y point for
start en end location are in a array.
I need to find on a MouseDown event on a line the index in that array.
pts[0]=[1,2,3,4]
pts[1]=[5,6,7,8]
draw.begin(DrawingArea)
for x = 0 to pts.count-1
t=pts[x]
draw.line(t[0],t[1],t[2],t[3])
next
draw.end
sub DA_MouseDown()
'find if point by mouse.x and .y is drawn in linecolor
checkhit how?
end
TIA Ron.
More information about the User
mailing list