load_from_pnm_data


Description:

public bool load_from_pnm_data (uint8* buffer)

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

Parameters:

this

Context to be loaded or null to use the global context

buffer

Buffer that holds data

Returns:

true on success, otherwise false