Skip to content

Index of Module png

Matthias Görges edited this page May 29, 2014 · 7 revisions

Module: png

The png module provides a wrapper for the libpng image library. It imports and exports Portable Network Graphics (PNG) images to textures and allows the user to take screenshots.

Functions in this module:

Function Short Description
(png-width fname) Returns the width of a PNG file.
(png-height fname) Returns the height of a PNG file.
(png-depth fname) Returns the color depth (bits per pixel) of a PNG file.
(png-stride fname) Returns the stride (bytes per pixel) of a PNG file.
(screenshot->png fname) Saves a screenshot to file.
(png->img fname) Returns a loaded PNG file as an image texture.
(img->png img fname) Saves an image texture as a PNG file.
(png->u8vector fname . xargs) Returns a loaded PNG file as an u8vector.
(u8vector->png data fname w h) Saves an u8vector as a PNG file.
Clone this wiki locally