[Gambas-user] image rotate

Ondrej Beranek rainbof at ...626...
Sun Apr 10 12:53:39 CEST 2011


I have pictureBox as canavas for displayg output of vga cam

2011/4/10 Benoît Minisini <gambas at ...1...>

> > but it not worki'n
> >
> > I solve that with copy pictrure to separate variable, rotate it by
> property
> > rotate() and after that bring it back...
> >
> > this code
> >
> >   DIM mypic AS image
> >   mypic = PictureBox1.Picture.Image
> >   mypic = mypic.Rotate(Rad(95))
> >
> >   PictureBox1.Picture = mypic.Picture
> >
> > but this is very slow solution. Any idea how to make it faster ?
> >
> >
>
> Don't use a Picture box. Draw you rotated picture from the "Draw" event of
> a
> DrawingArea.
>
> Regards,
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list