Hi,
Are there any plans to enhance SDL_Image to save images to disk?
It would be really useful if it could save PNG (and possibly JPEG and BMP,
but
mostly PNG) from a surface or specified memory location or something like
that.
Any chance this would ever be implemented?
Sincerely
Plain SDL has the following function for saving a sufrace as a BMP file.
There are no functions to save in other formats AFAIK.
int SDL_SaveBMP(SDL_Surface *surface, const char *file);
Are there any plans to enhance SDL_Image to save images to disk?
Plain SDL has the following function for saving a sufrace as a BMP file.
There are no functions to save in other formats AFAIK.
int SDL_SaveBMP(SDL_Surface *surface, const char *file);
Oops! Yes, you’re right. There’s SDL_SaveBMP. I should have phrased it
differently. What i really meant to ask was for saving to JPG or PNG, because
i’m lazy and don’t want to convert screenshots manually after taking them.
Sorry for the confusion.
Also, i didn’t need to ask about SDL_Image really. I should have said: Can SDL
be extended to save to JPG/PNG, regardless of which library its in?
(I ask for png because there are times when its neccessary to save the image’s
alpha information, which bmp just won’t do.)