load_from_jpeg


Description:

public bool load_from_jpeg (string filename, int scale = 1) throws Error

Load a context from a JPEG file.

If context dimensions are less than jpeg dimensions, the function loads as much of the image as it can.

If color mode is not in RGB mode, the functions allocates as many colors as it can.

Parameters:

this

Context to be loaded or null to use the global context

filename

Name of jpeg file

scale

scale the image to 1/scale, only 1, 2, 4 and 8 are supported

Returns:

true on success, otherwise false