load_from_png


Description:

public bool load_from_png (string filename, bool use_alpha = true) throws Error

Load a context from a PNG file

If context dimensions are less than png 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 jpeg file

use_alpha

if true, use alpha channel if available

Returns:

true on success, otherwise false