> Question on Gambas 3
> 
> I need to find pixelcolor from a drawingarea painted with the draw event.
> I tried already several variants of drawingarea.grab but always fail.
> 
> the help for Grab is weak and typeof(drawingarea.grab) gives 13 (function)
> 
> goal is to select pixel (drawn object as lines is not possible i gues) when
> on mouse.move over drawingarea.
> 
> wally
> 

You can't, because the DrawingArea contents is stored inside the X server (or 
the graphic card). This is a X11 thing.

You have to use an intermediate Image object in memory.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to