pyguymer3.image.save_array_as_PNG¶
- pyguymer3.image.save_array_as_PNG(arrUint8, fname, /, *, calcAdaptive: bool = True, calcAverage: bool = True, calcNone: bool = True, calcPaeth: bool = True, calcSub: bool = True, calcUp: bool = True, debug: bool = True, dpi: None | int = None, modTime=None, palUint8=None)[source]¶
Save an array as a PNG image.
- Parameters:
arrUint8 (numpy.ndarray) – A “height * width * colour” unsigned 8-bit integer NumPy array.
fname (str) – output file name
calcAdaptive (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcAverage (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcNone (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcPaeth (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcSub (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcUp (bool, optional) – See
pyguymer3.image.makePng()for the documentation.debug (bool, optional) – Print debug messages.
dpi (None or float or int, optional) – See
pyguymer3.image.makePng()for the documentation.modTime (None or datetime.datetime, optional) – See
pyguymer3.image.makePng()for the documentation.palUint8 (None or numpy.ndarray, optional) – See
pyguymer3.image.makePng()for the documentation.
Notes
Copyright 2017 Thomas Guymer [1]
References