Click or drag to resize

CefImageGetAsJpeg Method

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 CefBinaryValue containing the JPEG image data on success or NULL on failure.

Namespace:  Internal.Xilium.CefGlue
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public CefBinaryValue GetAsJpeg(
	float scaleFactor,
	int quality,
	out int pixelWidth,
	out int pixelHeight
)

Parameters

scaleFactor
Type: SystemSingle
quality
Type: SystemInt32
pixelWidth
Type: SystemInt32
pixelHeight
Type: SystemInt32

Return Value

Type: CefBinaryValue
See Also