< BlitzMax < Modules < Graphics

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

Functions

LoadPixmapPNG

Function LoadPixmapPNG:TPixmap( url:Object )

Description: Load a Pixmap in PNG format

Information: LoadPixmapPNG loads a pixmap from url in PNG format.

If the pixmap cannot be loaded, Null is returned.

SavePixmapPNG

Function SavePixmapPNG( pixmap:TPixmap,url:Object,compression=5 )

Description: Save a Pixmap in PNG format

Information: SavePixmapPNG 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).

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.