Grx.Context.prototype.save_to_jpeg

function save_to_jpeg(filename: String, quality: Number(gint)): Boolean {
    // Gjs wrapper for grx_context_save_to_jpeg()
}
  

Dump a context in a JPEG file

This routine works both in RGB and palette modes

filename

Name of jpeg file

quality

quality scaling (1 to 100) the normal value is 75

Returns

true on success, otherwise false