468,512 Members | 1,408 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

How do I rotate an image??

5
Hi

I need to rotate an image for a project and wouldnt know how to go about it. Could you please help me with the required code that is needed for the rotation.

Troy
Sep 22 '06 #1
9 6192
Banfa
9,056 Expert Mod 8TB
Hi

I need to rotate an image for a project and wouldnt know how to go about it. Could you please help me with the required code that is needed for the rotation.

Troy
What type of image on what platform.
Sep 22 '06 #2
Trojan
5
its a .bmp image of a vulture that ive brought in and have to manipulate.
Sep 22 '06 #3
Banfa
9,056 Expert Mod 8TB
And do you need to do this in code or can you just get a graphics package and rotate the image to the required orientation.

If you require more than 1 orientation then just create several bmp files with the vulture at different orientations the the number required is fixed.
Sep 22 '06 #4
Trojan
5
It needs to be in code. But im really new at this and i dont know how to write the code that i need to do the rotation.
Sep 22 '06 #5
Banfa
9,056 Expert Mod 8TB
Do you need to rotate it by a multiple of 90 degrees to but an arbitary amount?
Sep 22 '06 #6
D_C
293 100+
Matrix multiplication is one option, especially if you have to unpack all the bmp data into it's own matrix.
Sep 22 '06 #7
Trojan
5
It has to be by user input, so any anount of rotation has to be possible.
Sep 22 '06 #8
Trojan
5
Hi

I would appreciate any help on the code that is needed as to how to do the rotation by user input.

thanks in advance
Sep 24 '06 #9
ltgbau
41
use GetDIBits to get the matrix bitmap data, then you can rotate image in the matrix, then pass it to image. that's the principle.
Sep 29 '06 #10

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Leo Koolsbergen | last post: by
7 posts views Thread by Showjumper | last post: by
17 posts views Thread by santel_helvis | last post: by
1 post views Thread by iwdu15 | last post: by
8 posts views Thread by Samuel Shulman | last post: by
3 posts views Thread by Diego F. | last post: by
10 posts views Thread by Joey_Stacks | last post: by
2 posts views Thread by Dariusz.Donimirski | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.