Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I such at programming pls help (c++)

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)

Name: Anonymous 2012-10-18 4:45

Rotating a 2D picture is easy. For each point of the output, you compute the image of its coordinates through rotation by θ under translation by (-x, -y). Then, the value of that point is in the input at those transformed coordinates.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List