Click or drag to resize

PageClientCaptureScreenshotAsync Method

Version 90.6.50
Capture page screenshot.

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

Parameters

format (Optional)
Type: SystemString
Image compression format (defaults to png).
quality (Optional)
Type: SystemNullableInt32
Compression quality from range [0..100] (jpeg only).
clip (Optional)
Type: CefSharp.DevTools.PageViewport
Capture the screenshot of a given region only.
fromSurface (Optional)
Type: SystemNullableBoolean
Capture the screenshot from the surface, rather than the view. Defaults to true.
captureBeyondViewport (Optional)
Type: SystemNullableBoolean
Capture the screenshot beyond the viewport. Defaults to false.

Return Value

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