PDA

Click to See Complete Forum and Search --> : Rotating Images


SteveS
Dec 7th, 1999, 03:26 PM
I was wondering is there a way of rotating an image through a given angle.

90, 180, 270, I can do these by swaping X & Y locations...
But something like 23.8 Degrees, how do you do that?

Steve.

Jim_Hubbard
Dec 7th, 1999, 08:29 PM
If you are using images that can be viewed with the free Wang/Kodak Image Edit control, there is a Rotate_Right and Rotate_Left method that can be called to rotate in 45 degree increments.

What type image?

SteveS
Dec 8th, 1999, 09:34 AM
The image type is not important.

I actually need to be able to rotate images with code. I need to have an image in a form, picture box etc... and by pressing a key, have the image rotate.

The image is quite small, 128x128 pixels. So a routine to do this would probably be fast enough.

Anyone who knows of an algorithm to carry out such a transformation. Please Help!

Steve.

QWERTY
Dec 8th, 1999, 10:32 AM
There is a tip on Vb-World about it: Rotating Image Through Any Angle (http://www.vb-world.net/tips/tip137.html)
Hope this will help

------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.