Grx.Context.load_from_pnm
@accepts(Grx.Context, filename) @returns(bool) def load_from_pnm(self, filename): # Python wrapper for grx_context_load_from_pnm()
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
- self
Context to be loaded or None to use the global context
- filename
Name of pnm file
- Returns