Solved

Rotating an Image

Posted on 1998-09-11
3
337 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 200 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 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