Sign in to follow this  

SDL_Overlay & libjpeg

This topic is 3906 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
Sign in to follow this