[Gambas-user] What is measured by "Angle"?

Ru Vuott vuott at ...325...
Wed Feb 15 22:05:47 CET 2012


> So, to rotate 90°, you have to do:
> hImg = hImg.Rotate(Rad(90))

...I noticed that I can rotate an "image" by:
hImg = hImg.Rotate(Pi(0.5))
  
  and simply:

hImg = hImg.Rotate(1.58)



Example:

Public Sub button2_Click()

Dim i As Image
Dim p As Picture

 i = Image.Load("/iter/mea_immago.gif")
 
 i = i.Rotate(1.58)   '...or .Rotate(Pi(0.5))
 
  p = i.picture

  PictureBox1.Picture = p

End




More information about the User mailing list