save_to_jpeg


Description:

public bool save_to_jpeg (string filename, int quality = 90) throws Error

Dump a context in a JPEG file

This routine works both in RGB and palette modes

Parameters:

this

Context to be saved or null to use the global context

filename

Name of jpeg file

quality

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

Returns:

true on success, otherwise false