Sign in to follow this  
khalidomar

SDL_Overlay & libjpeg

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this