save_to_png


Description:

public bool save_to_png (string filename) throws Error

Dump a context in a PNG file

This routine works both in RGB and palette modes

Parameters:

this

Context to be saved or null to use the global context

filename

Name of png file

Returns:

true on success, otherwise false