Index of Module png - part-cw/lambdanative GitHub Wiki
png
Module: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. |