Load a context from a PNM buffer
Support only PBM, PGM and PPM binary buffers with maxval < 256
If context dimensions are lesser than pnm dimensions, the routine loads as much as it can
If color mode is not in RGB mode, the routine allocates as much colors as it can
this |
Context to be loaded or null to use the global context |
buffer |
Buffer that holds data |
true on success, otherwise false |