Is there a simple way to create image files (say PNGs) from surfaces? I want to load a large surface, and make separate images from this surface, I guess creating a rect and moving around the large surface…
Thanks
Ed___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
You can use SDL_SaveBMP() if you don’t mind large file sizes, but you may be able to adapt the source code from SFontMaker to save PNGs. Run a Google search for sfontmaker and download the source. It has the file “png_save.c”. Also, someone recently pointed me to a PNG saving function that I would share if asked. I haven’t spent any time comparing the two, but I’d assume they’re very similar.
Jonathan Dearborn
Hi,Is there a simple way to create image files (say PNGs) from surfaces? I want to load a large surface, and make separate images from this surface, I guess creating a rect and moving around the large surface…ThanksEd
All new Yahoo! Mail “The new Interface is stunning in its simplicity and ease of use.” - PC MagazineDate: Wed, 27 Dec 2006 19:30:28 +0000From: e_byard at yahoo.co.ukTo: sdl at libsdl.orgSubject: [SDL] Creating image files from surfaces