Click or drag to resize

Page.CaptureScreenshotAsync Method

Version 85.3.121
Capture page screenshot.

Namespace:  CefSharp.DevTools.Page
Assembly:  CefSharp (in CefSharp.dll) Version: 85.3.121.0 (85.3.121.0)
Syntax
public Task<CaptureScreenshotResponse> CaptureScreenshotAsync(
	string format = null,
	Nullable<int> quality = null,
	Viewport clip = null,
	Nullable<bool> fromSurface = null
)

Parameters

format (Optional)
Type: System.String
Image compression format (defaults to png).
quality (Optional)
Type: System.Nullable<Int32>
Compression quality from range [0..100] (jpeg only).
clip (Optional)
Type: CefSharp.DevTools.Page.Viewport
Capture the screenshot of a given region only.
fromSurface (Optional)
Type: System.Nullable<Boolean>
Capture the screenshot from the surface, rather than the view. Defaults to true.

Return Value

Type: Task<CaptureScreenshotResponse>
returns System.Threading.Tasks.Task<CaptureScreenshotResponse>
See Also