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: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public CefBinaryValue GetAsPng(
	float scaleFactor,
	bool withTransparency,
	out int pixelWidth,
	out int pixelHeight
)

Parameters

scaleFactor  Single
 
withTransparency  Boolean
 
pixelWidth  Int32
 
pixelHeight  Int32
 

Return Value

CefBinaryValue
See Also