The OpenD Programming Language

writePng

Saves an image from an existing array of pixel data. Note that depth other than 8 may not be implemented yet. Also note depth of 16 must be stored big endian

  1. void writePng(string filename, MemoryImage mi)
  2. void writePng(string filename, ubyte[] data, int width, int height, PngType type, ubyte depth)
    void
    writePng
    (
    string filename
    ,
    const ubyte[] data
    ,
    int width
    ,
    int height
    ,,
    ubyte depth = 8
    )
  3. ubyte[] writePng(PNG* p)

Meta