?
Solved

Rotating an Image

Posted on 1998-09-11
3
Medium Priority
?
340 Views
Last Modified: 2010-04-30
How do you rotate an image in visual basic ???
and I mean flat 2D rotation ( like a clock's hands)
not 3D !
0
Comment
Question by:Eagle_232
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:Eagle_232
ID: 1434468
Adjusted points to 200
0
 
LVL 1

Accepted Solution

by:
sunj earned 400 total points
ID: 1434469
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
 
LVL 4

Expert Comment

by:martinag
ID: 1434470
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question