Originally Posted by
BeRo
I do want to share my useful BeRoPNG unit here. It's very tiny but complete PNG loader with a own tiny inflate routine, so it has no external unit dependencies. It supports even extended features such as Apple's proprietary extension CgBI and so on.
And here is the link:
http://rootserver.rosseaux.net/stuff/BeRoPNG.pas (36 kB src)
It's licensed under the 2-clause simplified BSD license.
So have a lot fun with it
Thanks for sharing BeRo!
Is it ok if I use this in a closed-source DLL for an engine I am writing?
if so, I was wondering, how does one use this?
Code:
function LoadPNG(DataPointer:pointer;DataSize:longword;var ImageData:pointer;var ImageWidth,ImageHeight:integer):boolean;
is DataPointer just the start of a PNG file, and DataSize the same as the PNG file size?
cheers,
Paul
Bookmarks