ChromiumWebBrowserScreenshotOrNull Method |
Version 63.0.0Note: This API is now obsolete.
Immediately returns a copy of the last rendering from Chrome,
or null if no rendering has occurred yet.
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 LoadingStateChanged/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: 63.0.0.0 (63.0.0.0)
Syntax [ObsoleteAttribute("Use ScreenshotAsync as this method will be removed in future versions.")]
public Bitmap ScreenshotOrNull(
PopupBlending blend = PopupBlending.Main
)
public:
[ObsoleteAttribute(L"Use ScreenshotAsync as this method will be removed in future versions.")]
Bitmap^ ScreenshotOrNull(
PopupBlending blend = PopupBlending::Main
)
Parameters
- blend (Optional)
- Type: CefSharp.OffScreenPopupBlending
Choose which bitmap to retrieve, choose Blend for a merged bitmap.
Return Value
Type:
BitmapBitmap.
See Also