Click or drag to resize

CefImageGetAsPng Method

Returns the PNG representation that most closely matches |scale_factor|. If |with_transparency| is true any alpha transparency in the image will be represented in the resulting PNG data. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a CefBinaryValue containing the PNG 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 GetAsPng(
	float scaleFactor,
	bool withTransparency,
	out int pixelWidth,
	out int pixelHeight
)

Parameters

scaleFactor
Type: SystemSingle
withTransparency
Type: SystemBoolean
pixelWidth
Type: SystemInt32
pixelHeight
Type: SystemInt32

Return Value

Type: CefBinaryValue
See Also