English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hey neone got an idea how to rotate a .bmp image on windows platform???? ya in C as the programming language...

2006-10-03 22:30:42 · 4 answers · asked by AB 2 in Computers & Internet Programming & Design

i have to make a code in C/c++ even if the world goes upside down.....
please guys help me......... warna meri samadhi mein aa jana.....

2006-10-03 22:42:48 · update #1

4 answers

read GDI+ documentation.
It gets a few lines of code...here is a sample:

Graphics g(..);
Image img("filename.jpg");
Matrix mx = new Matrix();
mx.Rotate(30);
g.Transform = mx;
g.DrawImage(img,new Point(20,10));

2006-10-03 23:40:48 · answer #1 · answered by Ugi 2 · 0 0

Firstly ignore that it's a Windows Bitmap - you should be handling your data as a DIB (Device Independant Bitmap). With this in mind, here's a link to a site which describes the algorithm perfectly.

Rawlyn.

2006-10-04 06:25:11 · answer #2 · answered by Anonymous · 0 0

Try Ulead Razor or some image animator. Unless I've gotten your message wrongly, you don't need C+ to "rotate" images.

2006-10-04 05:33:55 · answer #3 · answered by MyQute 3 · 0 1

Use ACDSee32 and
Microsoft Photo Editor

2006-10-04 05:38:46 · answer #4 · answered by Santhosh S 5 · 0 1

fedest.com, questions and answers