Grx.Context.save_to_pbm

@accepts(Grx.Context, filename, unicode)
@returns(bool)
def save_to_pbm(self, filename, comment):
    # Python wrapper for grx_context_save_to_pbm()
  

Dump a context in a PBM file (black and white)

This routine works both in RGB and palette modes If the pixel color isn't Black it asumes White

self

Context to be saved or None to use the global context

filename

Name of pbm file

comment

string saved like a comment in the pbm file

Returns