Click or drag to resize

IImage.GetAsBitmap Method

Version 73.1.130
Returns the bitmap representation that most closely matches scaleFactor.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 73.1.130.0 (73.1.130.0)
Syntax
byte[] GetAsBitmap(
	float scaleFactor,
	ColorType colorType,
	AlphaType alphaType,
	out int pixelWidth,
	out int pixelHeight
)

Parameters

scaleFactor
Type: System.Single
scale factor
colorType
Type: CefSharp.Enums.ColorType
color type
alphaType
Type: CefSharp.Enums.AlphaType
alpha type
pixelWidth
Type: System.Int32
pixel width
pixelHeight
Type: System.Int32
pixel height

Return Value

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