Jump to content
  • Advertisement

Archived

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

WhiteRaptor

JPGs in DirectDraw - 24-bit only?

This topic is 6064 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 just read the article on GameDev.net regarding loading JPEGs to DirectDraw surfaces - and the question came to me, does the surface have to be 24-bit in order to load a JPEG to it? Will it not display on any other bit depth? I haven''t tried it yet myself, because I haven''t downloaded the Intel JPEG library, but was hoping someone could tell me if this was the case or not. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
I don''t know anything about JPEG''s compression format or about that article. But in any case, you can load the image onto a temporary 24-bit surface and then copy the contents of this surface to the required surface by using GDI''s BitBlt function.

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!