Grx.Context.prototype.load_from_png

function load_from_png(filename: String, use_alpha: Boolean): Boolean {
    // Gjs wrapper for grx_context_load_from_png()
}
  

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

filename

Name of jpeg file

use_alpha

if true, use alpha channel if available

Returns

true on success, otherwise false