Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Halloween

Loading *.bmp files

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

Please, someone help me to figure out how to load a *.bmp file, then stretch it, convert to the 256 colors and save back to the another file, using only Win32 functions.

Share this post


Link to post
Share on other sites
Advertisement
I cant help you with the converting it to 256 colours but you can use LoadImage() to load in the bitmap (casting it to a HBITMAP i think) and then you can use StretchDIBBits() to stretch it to whatever you want. Have a look at those functions in the msdn.

Share this post


Link to post
Share on other sites
you can use windows gdi to load the bitmap, the gdi can convert the bitmap for you, but its kinda of slow though, you can only do it during initialization

Share this post


Link to post
Share on other sites

  • 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!