[Gambas-user] get color from drawingarea point

2009-04-22 Thread juelin
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 -- View this message in context:

Re: [Gambas-user] get color from drawingarea point

2009-04-22 Thread Jussi Lahtinen
To be more clear... this to outside of loop: tmpImage = DrawingArea1.Grab().Image this to inside of loop: c = tmpImage[x, y] But like Benoit said, it's not necessary in sync with DrawingArea internal buffer... depends on situation. I have used that kind of code with pictures, to gain more