[Gambas-user] get color from drawingarea point

Benoît Minisini gambas at ...1...
Wed Apr 22 20:48:34 CEST 2009


> hi,
> I need to get the color of point into drawingaera.
> I use "c = DrawingArea1.Grab().Image[x, y]"
> This works well, but for a Area of 512 x 512 points it needs more than 10
> minutes
> How can I accelerate this function?
>
> kind regards
> Jürgen

On X-Window, you don't have access to the pixel data of the buffer used by a 
DrawingArea, so it will always be slow.

To be fast, you must have an Image buffer and keep it in sync with the 
DrawingArea internal buffer. Not easy...

Regards,

-- 
Benoît




More information about the User mailing list