WritePNG
PyCellChemistry documentation index
/Users/lidia/main/research/acbook/web/website/ac-home/pycellchem/pycellchem-2.0/src/RD/WritePNG.py

#---------------------------------------------------------------------------
#
# WritePNG.py: writes compressed, true-color RGBA PNG files
#
# RGBA stands for "Red Green Blue Alpha", where alpha is the opacity level
#
# extracted from:
# http://stackoverflow.com/questions/902761/saving-a-numpy-array-as-an-image
#
# Original source code:
# https://developer.blender.org/diffusion/B/browse/master/release/bin/blender-thumbnailer.py$155
#


Functions
saveAsPNG(array, filename)
test_save_png()
test_write_png()
write_png(buf, width, height)
buf: must be bytes or a bytearray in py3, a regular string in py2. formatted RGBARGBA...


Generated automatically by pydoc, July 10, 2015