BRL.PNGLoader: Functions Modinfo Source  

PNG loader

The PNG loader module provides the ability to load PNG format pixmaps.

Functions

Function LoadPixmapPNG:TPixmap( url:Object )
DescriptionLoad a Pixmap in PNG format.
InformationLoadPixmapPNG loads a pixmap from url in PNG format.

If the pixmap cannot be loaded, Null is returned.

Function SavePixmapPNG( pixmap:TPixmap,url:Object,compression=5 )
DescriptionSave a Pixmap in PNG format.
InformationSavePixmapPNG saves pixmap to url in PNG format. If successful, SavePixmapPNG returns True, otherwise False.

The optional compression parameter should be in the range 0 to 9, where 0 indicates no compression (fastest) and 9 indicates full compression (slowest).

Module Information

Version1.03
AuthorMark Sibly
LicenseBlitz Shared Source Code
CopyrightBlitz Research Ltd
ModserverBRL
History1.03 Release
HistoryAdded Gray/Alpha support
History1.02 Release
HistoryFixed palettized/grayscale support