Grx.Context.prototype.save_to_pgm
function save_to_pgm(filename: String, comment: String): Boolean { // Gjs wrapper for grx_context_save_to_pgm() }
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
- filename
Name of pgm file
- comment
string saved like a comment in the pgm file
- Returns
true on success, otherwise false