pngload

API Reference

pngload

A reader for the PNG image format.

PNGLOAD

  • Function (setf COLOR-TYPE) (color-type)
  • Function (setf COMPRESSION-METHOD) (compression-method)
  • Function (setf INTERLACE-METHOD) (interlace-method)
  • Function (setf FILTER-METHOD) (filter-method)
  • Function (setf GAMMA) (gamma)
  • Function (setf RENDERING-INTENT) (rendering-intent)
  • Function (setf PIXEL-SIZE) (pixel-size)
  • Function (setf LAST-MODIFIED) (time)
  • Function (setf TEXT) (text)
  • Function LOAD-STREAM (stream &key (decode t) flatten flip-y static-vector)
    load the given PNG datastream from STREAM. The following options are supported: DECODE: When NIL, skip image decoding and only gather metadata. FLATTEN: When non-NIL, read the image data into a 1-dimensional array. FLIP-Y: When non-NIL, flip the image data on its Y axis while reading. STATIC-VECTOR: When non-NIL, read the image data into a static-vectors array, suitable to be passed to a foreign library. See LOAD-FILE if you want to load a PNG datastream from a file on disk.
  • Function LOAD-FILE (path &key (decode t) flatten flip-y static-vector)
    Load the PNG file located at the given filesystem PATH. The following options are supported: DECODE: When NIL, skip image decoding and only gather metadata. FLATTEN: When non-NIL, read the image data into a 1-dimensional array. FLIP-Y: When non-NIL, flip the image data on its Y axis while reading. STATIC-VECTOR: When non-NIL, read the image data into a static-vectors array, suitable to be passed to a foreign library. See LOAD-STREAM if you want to load a PNG datastream.
  • Macro WITH-PNG-IN-STATIC-VECTOR ((png-var path-or-stream &key (decode t) flip-y) &body body)
    Load a PNG image to a foreign array using static-vectors, automatically freeing memory when finished. See LOAD-STREAM See LOAD-FILE

pngload.test

Tests for pngload.

PNGLOAD.TEST

  • Function TEST-IMAGES (&key (ref :png-read))
  • Function TEST-READ-TIMES (file &key (count 1))