andrewo
07-13-2001, 05:14 AM
Ok I want to make a program that allows me to have a picture (eg JPG,BMP,GIF) rotate, like in the paint programs that you can put them on angles.
(eg 45 degrees, 12 degrees)
Maybe someone could make an example program like have a text box that you type in how much you want the image rotated
and a image box with some image in it, which would be rotated
~
Garrett Sever
07-13-2001, 06:41 AM
What you are suggesting is rather involved, and slow. I hope you aren't thinking of doing alot of rotating in your game. Rod Stephens covers exactly this topic in his book "Visual Basic Graphics Programming (http://www.vb-helper.com/vbgp.htm)". Go buy it.
You can also do a search in his How-To section to find out how to rotate a bitmap 90 degrees.
-Hand out
"On a long enough timeline, everyone's life expectancy drops to zero." - Fight Club
BillSoo
07-13-2001, 10:36 AM
The fastest way would be to use DirectX (which I'm not familiar with...) but if you want to do it with pure VB (with just a couple of API calls, GetPixel and SetPixel), then check out <a href="http://www.visualbasicforum.com/bbs/showflat.php?Cat=&Board=visbas&Number=28998&page=&view=&sb=&o=&vc=1">this thread.</a>
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
andrewo
07-14-2001, 08:45 AM
Hey "the hand"
its just for the characters in my game, its top view only
so u can use just one image for each animation
instead of drawin different ones for different directions
~
andrewo
07-14-2001, 08:46 AM
thanx bilsoo that helps
~