473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 6434
Banfa
9,065 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,065 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,065 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

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

Similar topics

6
by: Leo Koolsbergen | last post by:
Hallo, Maybe a very simpel problem, but I cannot find a solution. From a webcam I can retreive pictures, but as the cam is positioned upside down I have to rotate the (jpeg) pictures. I've...
7
by: Showjumper | last post by:
Hi, I have developed an upload server controls to be reused over a number of projects. One of the tasks it needs to handle is to rotate an image. I want to accoplish this by checking the checkbox...
17
by: santel_helvis | last post by:
Hi All, Could anyone tell me how to rotate the image in javascript. Which concepts I should concentrate to rotate the image
1
by: iwdu15 | last post by:
hi, im trying to rotate a gdi drawn object on my form with a keypress....forinstance when i push the down arrow, for it to rotate the object drawn until the top is down, or if i push the right...
8
by: Samuel Shulman | last post by:
Is it possible and how to rotate pictures in HTML document Thank you, Samuel
3
by: Diego F. | last post by:
Hi all. I have a listview with images and my application must be able to rotate one image. I need a method to rotate 90 degrees rigth (i.e.). Is that possible? -- Regards, Diego F.
10
by: Joey_Stacks | last post by:
Does anyone know of a scipt that will rotate random div layers on page refresh? I have a primary content area front and center on my site homepage, and I'd like to rotate various chunks of html...
2
by: Dariusz.Donimirski | last post by:
I must rotate bmp using Xlib without change bmp's memory. If someone knows how I can do this, please help me. dariusz sorry about my english, I'm still learning
1
Thekid
by: Thekid | last post by:
Hi, I have an image similar to a clock, with numbers and letters going around in a circle. I need to extract the numbers and letters from the image and have them print out in a straight line and in...
0
by: harryusa | last post by:
I am experimenting with the rotate function and so far I can't get my code to return anything but the URL of my script. Here it is: <?php // The file you are rotating $image =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.