On Friday 17 December 2010 23:36:37 Fabien Bodard wrote: > 2010/12/17 wally <wa...@voosen.eu>: > > On Friday 17 December 2010 11:14:49 Benoît Minisini wrote: > >> > 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 > >> > >> > > ------------------------------------------------------------------------------ > >> Lotusphere 2011 > >> Register now for Lotusphere 2011 and learn how > >> to connect the dots, take your collaborative environment > >> to the next level, and enter the era of Social Business. > >> http://p.sf.net/sfu/lotusphere-d2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > Benoit, > > > > here i attached a ptoject where should be immediately clear what's my problem. > > > > do you imagine the space an image take in memory ? > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user >
Fabian, yes, you are right, this may be a problem. I will try to collect the data as short as possible in a data-array and display always only the graph of a segment of this array. Your DemoGraph was helpful to see how the _draw event is used and i'll try this way too. But for now i would like to know how the DrawingArea.Resize works internally and why there are differences in GB2 and GB3. wally ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user