Grx.Context.prototype.save_to_pbm

function save_to_pbm(filename: String, comment: String): Boolean {
    // Gjs 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

filename

Name of pbm file

comment

string saved like a comment in the pbm file

Returns

true on success, otherwise false