The OpenD Programming Language

cef_image_t.get_as_jpeg

Returns the JPEG representation that most closely matches |scale_factor|. |quality| determines the compression level with 0 == lowest and 100 == highest. The JPEG format does not support alpha transparency and the alpha channel, if any, will be discarded. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a cef_binary_value_t containing the JPEG image data on success or NULL on failure.

struct cef_image_t
extern (System)
cef_binary_value_t* function(cef_image_t* self, float scale_factor, int quality, int* pixel_width, int* pixel_height) nothrow get_as_jpeg;

Meta