[Gambas-user] painting graph to image continuously
wally
wally at ...2037...
Wed Dec 15 16:38:18 CET 2010
On Wednesday 15 December 2010 16:34:38 Benoît Minisini wrote:
> > Benoit,
> > thank you,
> > but how to paint the background of the new part first ?
> > wally :)
> >
> > this works : ... but isn't there a smarter way ?
> >
> >
> > If t > myImage1.W Then
> > myImage1.Resize(myImage1.w + 1, myImage1.H)
> >
> > Paint.Begin(myImage1)
> > Paint.Brush = Paint.Color(Color.RGB(255, 255, 223))
> > Paint.Rectangle(myImage1.W - 1, 0, 1, myImage1.H)
> > Paint.Fill
> > Paint.End
> >
> > PictureBox1.w += 1
> >
> > Endif
> >
>
> Use Draw instead of Paint for that: Paint integer coordinates lead to
> fractional pixels, not Draw. And so Draw will be faster.
>
> --
> 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
>
thanks :)
More information about the User
mailing list