[Gambas-user] painting graph to image continuously

wally wally at ...2037...
Fri Dec 17 19:10:00 CET 2010


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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

Benoit,

i send 2 projects to compare behavior of DrawingArea.Resize in
GB2 and GB3. Please also have a look on the created picturefile
in GB3 version.

wally
 




-------------- next part --------------
A non-text attachment was scrubbed...
Name: DAResize_gb3-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 5604 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20101217/d4e1e002/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DAResize_gb2-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 7748 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20101217/d4e1e002/attachment-0001.bin>


More information about the User mailing list