Grx.Context.save_to_pgm
@accepts(Grx.Context, filename, unicode) @returns(bool) def save_to_pgm(self, filename, comment): # Python 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
- self
Context to be saved or None to use the global context
- filename
Name of pgm file
- comment
string saved like a comment in the pgm file
- Returns