Grx.Context.load_from_png

@accepts(Grx.Context, filename, bool)
@returns(bool)
def load_from_png(self, filename, use_alpha):
    # Python 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

self

Context to be loaded or None to use the global context

filename

Name of jpeg file

use_alpha

if True, use alpha channel if available

Returns