load_from_pnm


Description:

public bool load_from_pnm (string filename)

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

Parameters:

this

Context to be loaded or null to use the global context

filename

Name of pnm file

Returns:

true on success, otherwise false