Solved

Rotating an Image

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

839 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