read_png

Reads an 8-bit or 16-bit PNG image and returns it as an 8-bit image. req_chans defines the format of returned image (you can use ColFmt here).

  1. IFImage read_png(char[] filename, long req_chans)
    read_png
    (
    in char[] filename
    ,
    long req_chans = 0
    )
  2. IFImage read_png(Reader stream, long req_chans)

Meta