SaveAsPNG

Greetings.

1) Has anyone written (or got) a...
	'bool SaveAsPNG(const SDL_Surface *surf)' function ?

2) Can IMG_Load() read RLE encoded 24 bit BMP files (or have i
	done somthing wrong during the saveout which is stopping me
	from reading/using RLE BMPs).

thanks.

-dv

Daniel <daniel_v at bigpond.com> schrieb am 03 May 2000:

Greetings.

  1. Has anyone written (or got) a…
    ‘bool SaveAsPNG(const SDL_Surface *surf)’ function ?

I have written code to
a) convert a SDL_Surface (only 24 & 32 bit) into a OpenGL suitable
format
b) save this format (actually, something obtained by glReadPixels)
to a .png file (using libpng only).

It shouldn’t be too hard to but the two together. Mail me if you’re
interested.

  • Andreas–
    Check out my 3D lightcycle game: http://www.gltron.org
    More than 60’000 Downloads of the latest version (0.53)
  'bool SaveAsPNG(const SDL_Surface *surf)' ?

I have written code to
a) convert a SDL_Surface (only 24 & 32 bit) into a OpenGL suitable
format
b) save this format (actually, something obtained by glReadPixels)
to a .png file (using libpng only).

It shouldn’t be too hard to but the two together. Mail me if you’re
interested.

Dear Andreas,

this sound very cool. thank you i am interested.

if there anything you are after than i may have to help you on you 

projects let me know.

Daniel <daniel_v at bigpond.com> schrieb am 04 May 2000:

  'bool SaveAsPNG(const SDL_Surface *surf)' ?

this sound very cool. thank you i am interested.

if there anything you are after than i may have to help you on you
projects let me know.

Ok, you can find it at

http://www.ards.net/Andreas/SDL/sdl_savepng.tar.gz

Type ‘make test’ to build the example program (that converts any
SDL_image readable image file to a png file).

  • Andreas–
    Check out my 3D lightcycle game: http://www.gltron.org
    More than 60’000 Downloads of the latest version (0.53)