Jump to content
  • Advertisement
Sign in to follow this  
khalidomar

SDL_Overlay & libjpeg

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

Hello Experts, Is it possible to load a JPEG file into SDL_Overlay structure? I managed to get SDL_Image and libjpeg to load a JPEG image into SDL_Surface but that is not what I want in my program (Also, converting SDL_Surface to SDL_Overlay is time consuming and not accurate). It seems to me that SDL_Image uses libjpeg in a way so that JPEG images are loaded into SDL_Surface. I'm sure that some parameters passed to libjpeg can be changed so that the image gets loaded inside SDL_Overlay instead. The problem is I don't know how? I would really appreciate it if any one can help me in this. Thank you, Khalid.

Share this post


Link to post
Share on other sites
Advertisement
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!