Click or drag to resize

IImage.GetAsPNG Method

Version 109.1.110
Returns the PNG representation that most closely matches scaleFactor.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 109.1.110.0 (109.1.110.0)
Syntax
byte[] GetAsPNG(
	float scaleFactor,
	bool withTransparency,
	out int pixelWidth,
	out int pixelHeight
)

Parameters

scaleFactor
Type: System.Single
scale factor
withTransparency
Type: System.Boolean
is the PNG transparent
pixelWidth
Type: System.Int32
pixel width
pixelHeight
Type: System.Int32
pixel height

Return Value

Type:Byte[]
A stream represending the PNG or null.
See Also