Jump to content
  • Advertisement
Sign in to follow this  
zappernapper

rotate functions for win32?

This topic is 4813 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i'm programming my games using win32, but the book i'm using doesn't mention any ability to rotate a bitmap once you've loaded it. Is there any way i can blit it differently, essentially rotating it? or am i stuck with having to create rotations of my image? (i.e. i want to make an image like the froggy from Zuma) zappernapper

Share this post


Link to post
Share on other sites
Advertisement
Agreed, GDI means do it yourself ;)

This site had some great tutorials back when I used to work with GDI... maybe they can help?

http://www.functionx.com/bcb/index.htm

-dbh

Share this post


Link to post
Share on other sites
while that site DOES answer other questions i had on how to create widgets outside of python, it only goes as far to tell me how to load and draw a bitmap... doesn't even mention how to load it as a resource or use transparency... so what you're saying is I have to somehow figure out how to tell the program to blit it a certain way? damn.... anyone else happen to know something?

Share this post


Link to post
Share on other sites
If you don't care about Win9x or WinME compatibility you can switch GDI to "advanced" mode via SetGraphicsMode and then do arbitrary 2D transformations with SetWorldTransform.

On any version of Win32 you can flip around either the horizontal or vertical axis simply by giving a negative width/height to StretchBlt.

You might also be able to do what you want with PlgBlt. But I haven't really played with that function so I don't know to much about it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!