Hello All

I have on prog. in C which displays the text file in reverse order.

I was in thinking that for text file reverse order means displaying text from end of file to beginning of file.
in the same image will be rotated in 180 degree i.e. reverse the image.

I have tried it for jpeg but not worked . . . :(

so how to reverse the image file i.e. how to rotate the image file?

Recommended Answers

First you must know how to retrieve the pixel data of the image.
(Please google about that, I never tried it in C/C++, but its easy to get the same in Java which I have done)

Then you have to know how to rotate an image(pixel-wise)

Jump to Post

All 2 Replies

First you must know how to retrieve the pixel data of the image.
(Please google about that, I never tried it in C/C++, but its easy to get the same in Java which I have done)

Then you have to know how to rotate an image(pixel-wise)
http://homepages.inf.ed.ac.uk/rbf/HIPR2/rotate.htm

And then you have to process the pixel data one by one to rotate it in any angle you want.

thanks for info . . .

I'll try on it.

I was on vacation so not able to reply.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.