Save as PNG

Blitz3D Forums/Blitz3D Beginners Area/Save as PNG

grindalf(Posted 2007) [#1]
I really need to save images as a PNG. does anyone know of a way to do this.
and if not does anyone know where i can learn the format so i can write my own converter.


b32(Posted 2007) [#2]
I think that is called a 'format description'. I found this link when searching for it.
http://www.coolutils.com/Formats/PNG

However, you could try the FreeImage lib. I haven't used it myself, but I read about it on the forum.
Here is a thread about it:
http://www.blitzbasic.com/Community/posts.php?topic=26276


grindalf(Posted 2007) [#3]
The forum links don't exist anymore. Ill check the description more in detail later, unless someone else knows something better.

Thanks for the reply.


b32(Posted 2007) [#4]
Ow .. okay .. I didn't check it.
Here is the code archive entry for freeimage:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1732
Further down (in the comments) are examples how to use it. I saw that in one of the examples, a PNG is saved. (Ctrl+F search for "png")


Jerome Squalor(Posted 2007) [#5]
If you open the file in paint and go to save as you can convert it to PNG ( along with JPG,BMP, ect.).


Matty(Posted 2007) [#6]
This may help - if you want the specification they should be available from here:

http://www.libpng.org/pub/png/

You may have to write your own exporter.


big10p(Posted 2007) [#7]
This post contains the version of the FreeImage wrapper I used, complete with required decls.