PNG Lib?

dsimcha dsimcha at yahoo.com
Sun Jul 25 10:30:57 PDT 2010


== Quote from Eric Poggel (dnewsgroup at yage3d.net)'s article
> On 7/25/2010 12:26 AM, BCS wrote:
> > Hello dsimcha,
> >
> >> Is there any simple PNG lib that's:
> >>
> >
> > http://www.dsource.org/projects/scrapple/wiki/LodePngLibrary
> >
> >> 1. Written in pure D.
> >>
> >
> > I think so.
> >
> >> 2. Licensed under the Boost or zlib/libpng license, or some other
> >> license that is open-source, non-copyleft and doesn't require binary
> >> attribution.
> >
> > Don't know.
> >
> >>
> >> 3. Small enough that I could just copy/paste it into my Plot2Kill lib
> >> and give credit, thus avoiding dependency hell?
> >>
> >
> > Depends on how small is small enought.
> >
> If LodePng doesn't work, there's this actionscript library
>
(http://code.google.com/p/as3corelib/source/browse/trunk/src/com/adobe/images/PNGEncoder.as)
> which probably wouldn't be too bad to port (~100 lines).  It uses a gzip
> compress function (line 88) that's part of the standard actionscript
> library
>
(http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/utils/ByteArray.html#compress())--I'm
> not sure what's available in D.

Thanks, but Adam Ruppe's code seems to do what I need and has already been
integrated into Plot2Kill and checked in.  (This means Plot2Kill now supports PNG
on DFL.)


More information about the Digitalmars-d mailing list