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
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 |
true on success, otherwise false |