SDL_image is an image file loading library. It supports several different file formats. Now is there a library that can convert SDL surfaces to these formats and store it to the disk? What I’m interrested is a way to load a PNG image, modify it and then to store it.–
Store it as what? A PNG again? If a BMP is ok, there’s always
SDL_SaveBMP().> ----- Original Message -----
From: di1oppa@chl.chalmers.se (Opacic Patrik)
To:
Sent: Sunday, April 14, 2002 12:00 PM
Subject: [SDL] Surface->Image fileSDL_image is an image file loading library. It supports several different
file formats. Now is there a library that can convert SDL surfaces to these
formats and store it to the disk? What I’m interrested is a way to load a
PNG image, modify it and then to store it.–
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
I meant to store it as PNG again. I want to load a PNG file to a SDL surface (the SDL_image library can do this), manipulate it, and store it back to disk as a PNG file. Perhaps its not a good idea to use SDL for this but I want a easy way to manipulate a PNG file without having to write the compression/decompression and handle color tables etc.> ----- Original Message -----
From: jason@hoffoss.com (Jason Hoffoss)
To:
Subject: Re: [SDL] Surface->Image file
Date: Sun, 14 Apr 2002 22:26:47 -0400
Reply-To: sdl at libsdl.orgStore it as what? A PNG again? If a BMP is ok, there’s always
SDL_SaveBMP().
Check out http://openil.sourceforge.net/, this should handle your image
needs.> ----- Original Message -----
From: di1oppa@chl.chalmers.se (Opacic Patrik)
To:
Sent: Monday, April 15, 2002 12:36 PM
Subject: [SDL] Re: Surface->Image fileI meant to store it as PNG again. I want to load a PNG file to a SDL
surface (the SDL_image library can do this), manipulate it, and store it
back to disk as a PNG file. Perhaps its not a good idea to use SDL for this
but I want a easy way to manipulate a PNG file without having to write the
compression/decompression and handle color tables etc.----- Original Message -----
From: “Jason Hoffoss”
To:
Subject: Re: [SDL] Surface->Image file
Date: Sun, 14 Apr 2002 22:26:47 -0400
Reply-To: sdl at libsdl.orgStore it as what? A PNG again? If a BMP is ok, there’s always
SDL_SaveBMP().
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
Doing just this sort of thing is what the libpng library is designed for. I
think that using that is your best bet. SDL is simply built on top of it,
as are nearly all libraries or applications that can load png files.
-Jason> ----- Original Message -----
From: di1oppa@chl.chalmers.se (Opacic Patrik)
To:
Sent: Monday, April 15, 2002 3:36 PM
Subject: [SDL] Re: Surface->Image fileI meant to store it as PNG again. I want to load a PNG file to a SDL
surface (the SDL_image library can do this), manipulate it, and store it
back to disk as a PNG file. Perhaps its not a good idea to use SDL for this
but I want a easy way to manipulate a PNG file without having to write the
compression/decompression and handle color tables etc.----- Original Message -----
From: “Jason Hoffoss”
To:
Subject: Re: [SDL] Surface->Image file
Date: Sun, 14 Apr 2002 22:26:47 -0400
Reply-To: sdl at libsdl.orgStore it as what? A PNG again? If a BMP is ok, there’s always
SDL_SaveBMP().
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl