-
Rotate picture
Hail,
Can I use an API call to rotate a picture from a picture box (Need to make pic face north, NE, E, SE, S, SW, W, NW). Obviously I could save the pic in the different positions, but before I do that, I'd like to know if I can do it this way...
Phailak
-
I can tell you a way to flip pictures horizontally or vertically. You can use the PaintPicture Method of VB or BitBlt/StretchBlt api call for this purpose.
You need to use two Pictureboxes for this purpose. One which will contain the original picture, and the other wich will contain the flipped picture. Keep both the picturesboxes of same size and use PaintPicture to copy in a reverse order.
-
Hail,
Thanx, but I need to rotate so I guess I'll have to do it manually (8 pics per character)
Phailak
-
There is a program that does this. I had it, but I can't find it. They used BitBlt and it came with a game called DXtanks. I got it from around here somewhere...
-
you can use imageedit ocx
Imgedit1.Image = path to picture
Imgedit1.Display
Imgedit1.RotateRight or RotateLeft this rotates your image 90°
Imgedit1.Save