save_to_pbm


Description:

public bool save_to_pbm (string filename, string? comment = null) throws Error

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

Parameters:

this

Context to be saved or null to use the global context

filename

Name of pbm file

comment

string saved like a comment in the pbm file

Returns:

true on success, otherwise false