Load a context from a PNM file.
Support only PBM, PGM and PPM binary files with maxval < 256
If context dimensions are less than pnm dimensions, the routine loads as much as it can
If color mode is not in RGB mode, the routine allocates as many colors as it can
this |
Context to be loaded or null to use the global context |
filename |
Name of pnm file |
true on success, otherwise false |