Jump to content
  • Advertisement
Sign in to follow this  
gan

rotation

This topic is 4815 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

how to do the rotation to the bitmap file in win32 API? I found only BitBLt()can do transformation only?

Share this post


Link to post
Share on other sites
Advertisement
Ough. You don't really want to torture yourself with the Win32 API while posting in the For Beginners forum, do you? I'm not bashing you for being somewhat new, let's get that straight. But might I interest you in SDL? It has several libraries that will do this for you, and also allows you to use OpenGL directly with it, which allows you to take advantage of hardware rotation. And if you are worried about it not being used in the professional industry, Civilization 4 uses it. Plus, it is cross-platform.

That's my two cents, but follow the link the other guy gave you if it is really important for you to stick with the Win32 API. Thanks! I like SDL!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by xMcBaiNx
The simple answer: It can't be done using GDI.


it can be done in GDI using XFORMs, just not on 9x versions.

you can also use GDI+ to do the rotation on any version except 95. very fast, with a good set of quality settings.

there's also a number of image libraries out there that will rotate a DIB, none using GetPixel/SetPixel, and some using mmx/sse code.

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!