familia Posted July 30, 2003 Posted July 30, 2003 I need to rotate a image an amount of degrees diferent to 90,180 or 270. The angle is no problem, my problem is to rotate the image (no graphics). Any idea are welcome ! Quote
*Experts* mutant Posted July 30, 2003 *Experts* Posted July 30, 2003 Here is an example of rotating: Dim b As New Bitmap("path to file") b.RotateFlip(RotateFlipType.Rotate180FlipX) 'set the value you want here You can do this to any image object, you dont have to necessairly create a new one. Quote
*Gurus* divil Posted July 31, 2003 *Gurus* Posted July 31, 2003 To rotate by an arbitrary number of degrees (or radians) you have to draw the image on to a Graphics surface after using the Graphics's RotateTransform and TranslateTransform methods. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
familia Posted July 31, 2003 Author Posted July 31, 2003 To: Mutant I need to rotate with an angle different to 180 degrees. Unless there is something I do not kown, when you set another value,it send an error message. Quote
familia Posted July 31, 2003 Author Posted July 31, 2003 To:Divil Thank you. I already did it, but was searching other options. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.