Grx.Context.prototype.load_from_pnm

function load_from_pnm(filename: String): Boolean {
    // Gjs 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

filename

Name of pnm file

Returns

true on success, otherwise false