[Gambas-user] image rotate

Benoît Minisini gambas at ...1...
Sun Apr 10 12:51:33 CEST 2011


> 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




More information about the User mailing list