save_to_pgm


Description:

public bool save_to_pgm (string filename, string? comment = null) throws Error

Dump a context in a PGM file (gray scale)

This routine works both in RGB and palette modes The colors are quantized to gray scale using .299r + .587g + .114b

Parameters:

this

Context to be saved or null to use the global context

filename

Name of pgm file

comment

string saved like a comment in the pgm file

Returns:

true on success, otherwise false