Saving surface

Generating textures will take a lot of time. I want to generate it with one
program, then save every texture on disk and read it in game. However, I found
SDL_image can only read pictures. There is SDL_SaveBMP, but BMPs are huge. Is
there a way to save JPEG or PNG? What library I need?

Jacek Pop?awski wrote:

…SDL_image can only read pictures. There is SDL_SaveBMP, but BMPs are huge. Is
there a way to save JPEG or PNG? What library I need?
You can have a look at ParaGUI, it’s a GUI lib, but it uses a modified
version of SDL_Image (included in ParaGUI source distribution) so it can
save images in any supported format…
Hope this helps…

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20021113/a855557a/attachment.pgp

Jacek Pop?awski wrote:

…SDL_image can only read pictures. There is SDL_SaveBMP, but BMPs are huge. Is
there a way to save JPEG or PNG? What library I need?
You can have a look at ParaGUI, it’s a GUI lib, but it uses a modified
version of SDL_Image (included in ParaGUI source distribution) so it can
save images in any supported format…
Hope this helps…

Or, you may just want to use libPNG and libjpeg directly to write the
files. Or, find an image conversion utility to convert from .bmp to .png
or .jpeg for you after you write them out.

	Bob PendletonOn Wed, 2002-11-13 at 04:46, Paolo (cTh) Gavocanov wrote:


±-----------------------------------+

I know ParaGUI, but it’s too big for that task :)On Wed, Nov 13, 2002 at 01:46:34PM +0300, Paolo (cTh) Gavocanov wrote:

You can have a look at ParaGUI,

I know ParaGUI, but it’s too big for that task :slight_smile:
I did not suggest to use it, but to have a llok at the source version of
the SDL_image that is bundled with it, it has all the features you
want…:slight_smile:
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20021114/a0aa3155/attachment.pgp