Click or drag to resize

CefImageGetAsBitmap Method

Returns the bitmap representation that most closely matches |scale_factor|. Only 32-bit RGBA/BGRA formats are supported. |color_type| and |alpha_type| values specify the desired output pixel format. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a CefBinaryValue containing the pixel 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 GetAsBitmap(
	float scaleFactor,
	CefColorType colorType,
	CefAlphaType alphaType,
	out int pixelWidth,
	out int pixelHeight
)

Parameters

scaleFactor
Type: SystemSingle
colorType
Type: Internal.Xilium.CefGlueCefColorType
alphaType
Type: Internal.Xilium.CefGlueCefAlphaType
pixelWidth
Type: SystemInt32
pixelHeight
Type: SystemInt32

Return Value

Type: CefBinaryValue
See Also