[Gambas-user] painting graph to image continuously

Benoît Minisini gambas at ...1...
Fri Dec 17 11:14:49 CET 2010


> Benoit,
> 
> i sent already, but maybe attachments has been rejected.
> 
> The code below creates 1 circle. After resizing in GB3 i got
> 4 circles. Doing same in GB2 just a resize of the area is performed
> and the primarly created circle persists.
> 
> Public Sub btn_test_Click()
> 
>  'Drawing Area set to 100, 80
>  ' DrawingArea.cache - True
>  '- - > 200, 160
> 
>   Draw.Begin(DrawingArea1)
>     Draw.Circle(50, 40, 30)
>   Draw.End
> 
>   DrawingArea1.Resize(200, 160)
> 
>   myPicture = DrawingArea1.Screenshot()
>   myPicture.Save(ProjPath &/ "circles.png")
> 
> End
> 

I'm talking about a full project (the tar.gz of the project created by "make 
source archive" in the IDE menu). I don't find it...

-- 
Benoît Minisini




More information about the User mailing list