Package pbm implements a Portable Bit Map (PBM) image decoder and encoder. The supported image color model is color.RGBAModel.
The PBM specification is at http://netpbm.sourceforge.net/doc/pbm.html.
Decode reads a PBM image from Reader r and returns it as an image.Image.
DecodeConfig returns the color model and dimensions of a PBM image without decoding the entire image.
Encode writes the Image img to Writer w in PBM format.