Name: Anonymous 2012-10-18 4:34
Hi.
I'm new at programming and I need some help with a task assigned for me.
I've been asked to Make a C++ program that can rotate an image q degrees around the point (x,y).
So far I have modified a program a friend of mine made that inputs the bitmap image and outputs a the new image, so that it works for what I want it to do.
I'm having trouble figuring out how to make the algorithm that rotates the image and how to code it. Another problem i'm having is that i'm quite new to programming, I can read and understand code but I have a really hard time just writing code.
Here's what I have made so far:
http://pastebin.com/VrxEYZMv
(The function rotate is the one i'm trying to make)
I'm new at programming and I need some help with a task assigned for me.
I've been asked to Make a C++ program that can rotate an image q degrees around the point (x,y).
So far I have modified a program a friend of mine made that inputs the bitmap image and outputs a the new image, so that it works for what I want it to do.
I'm having trouble figuring out how to make the algorithm that rotates the image and how to code it. Another problem i'm having is that i'm quite new to programming, I can read and understand code but I have a really hard time just writing code.
Here's what I have made so far:
http://pastebin.com/VrxEYZMv
(The function rotate is the one i'm trying to make)