ChromiumWebBrowserScreenshotAsync Method |
Version 130.1.90Note: This API is now obsolete.
Starts a task that waits for the next rendering from Chrome.
Chrome also renders the page loading, so if you want to see a complete rendering,
only start this task once your page is loaded (which you can detect via FrameLoadEnd
or your own heuristics based on evaluating JavaScript).
It is your responsibility to dispose the returned Bitmap.
The bitmap size is determined by the Size property set earlier.
Namespace: CefSharp.OffScreenAssembly: CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax [ObsoleteAttribute("Use CaptureScreenshotAsync instead.")]
public Task<Bitmap> ScreenshotAsync(
bool ignoreExistingScreenshot = false,
PopupBlending blend = PopupBlending.Main
)
public:
[ObsoleteAttribute(L"Use CaptureScreenshotAsync instead.")]
Task<Bitmap^>^ ScreenshotAsync(
bool ignoreExistingScreenshot = false,
PopupBlending blend = PopupBlending::Main
)
Parameters
- ignoreExistingScreenshot Boolean (Optional)
- Ignore existing bitmap (if any) and return the next available bitmap
- blend PopupBlending (Optional)
- Choose which bitmap to retrieve, choose Blend for a merged bitmap.
Return Value
TaskBitmapTask<Bitmap>.
See Also