Grx.Context.load_from_jpeg_data
@accepts(Grx.Context, [guint8], int) @returns(bool) def load_from_jpeg_data(self, data, scale): # Python wrapper for grx_context_load_from_jpeg_data()
Load a context from JPEG data.
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.
- self
Context to be loaded or None to use the global context
- data
The jpeg data
- scale
scale the image to 1/scale, only 1, 2, 4 and 8 are supported
- Returns