• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

Rotating an Image

How do you rotate an image in visual basic ???
and I mean flat 2D rotation ( like a clock's hands)
not 3D !
0
Eagle_232
Asked:
Eagle_232
1 Solution
 
Eagle_232Author Commented:
Adjusted points to 200
0
 
sunjCommented:
There is no VB built-in function that can do arbitrary rotation. What you can do is to store the image pixel data into a two-dimensional array and then do the rotation transform yourself. Let me know if you need the formula for the transform. :)
0
 
martinagCommented:
Have a look at MSKB: http://support.microsoft.com/support/kb/articles/q186/2/60.asp
If you want me to post the code I will.

Note that the example rotates the bitmap in steps by 90 degrees, but it's rather easy to change it to rotate it any degrees you want to.

Martin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now