Short:        load,decode + draw PNG with alphachannel
Author:       info@torakosmos.de (Andreas G. Szabo)
Uploader:     info torakosmos de
Type:         util/libs
Version:      2.3
Requires:     68020+, OS3.0+, cybergraphics
Architecture: m68k-amigaos

===============================================================
DESCRIPTION
===============================================================

Use pngflux.library in your programs to load, decode and draw
PNG pictures with alphachannel.

With developer .doc and includes for ASM and C.

===============================================================
RECENT NEWS
===============================================================

NEWS IN V2

* added DrawClip() and DrawArray()
* added C includes
* faster drawing

NEWS IN V1

* first release

===============================================================
CENTRAL FEATURES
===============================================================

The library currently has five functions:

Load()     -> you supply a filenamen and pngflux does the rest

Draw()     -> you supply the object returned by Load(),
              a rastport and an x and y coordinate and pngflux
              does the rest

DrawClip() -> you supply the object returned by Load(),
              a rastport and an x and y coordinate
              and additionally an x and y coordinate in the
              image and the width and height of the part to draw

DrawArray()-> same as DrawClip() but 'draws' the part into an RGB
              array that you may provide

GetAttr()  -> you supply the object and an attribute number and
              you get the value associated with that number.
              Currently supported attributest are:
                   PNGFA_ARGBData -> get a pointer to the RAW
                                     ARGB data.

You may read the Width and the Height of the loaded image directly
from public fields of the object.

When you do not need the image anymore, just dispose it with
exec.library FreeVec().

Errors that happen at loading may be examined with dos.library
IoErr(), even such as when there is not enough memory.

The library functions register descriptions yet are in
the pngflux_lib.i include, until I write the pngflux.doc.

===============================================================
OLDER NEWS
===============================================================

Yet none.

===============================================================
MISC AND CREDITS
===============================================================

Related forum thread is there:
http://eab.abime.net/showthread.php?t=74927

pngflux.library is based on PNG decrunch and defilter sources
by Peter Keunecke. Decruncher is based on zlib by
Jean-loup Gailly and Mark Adler.

C includes and testprogram source by Thomas Rapp,
http://thomas-rapp.homepage.t-online.de/

Zak McKracken for President

===============================================================
DISCLAIMER
===============================================================

THIS SOFTWARE PACKAGE IS PROVIDED 'AS-IS' WITHOUT ANY WARRANTY.
I CANNOT BE HELD LIABLE FOR ANY DAMAGE ARISING OUT OF THE
(INABILITY OF MAKING) USE OF IT: USE AT YOUR OWN RISK.