I've got a CefSharp ChromiumWebBrowser control in my WPF application. Now I would like to take a screenshot from the ChromiumWebBrowser. On the internet I found there's a method ScreenshotAsync. But this is only for the Offscreen namespace.
Is there a way to get a screenshot while I'm using CefSharp on screen. Or some workaround like getting an offscreen instance from my on-screen webbrowser?
Asked
Active
Viewed 1,069 times
0
user2190492
- 1,069
- 2
- 8
- 34
-
1hope that topic solve problem : https://stackoverflow.com/questions/54231784/cefsharp-wpfcontrol-and-rendering-to-image – Kuba Do Aug 21 '19 at 11:25
-
Link above is one option. Another example at https://github.com/cefsharp/CefSharp/blob/cefsharp/75/CefSharp.Wpf.Example/Controls/ChromiumWebBrowserWithScreenshotSupport.cs (hasn't been tested in a while, so no guarantees it still works). – amaitland Aug 23 '19 at 01:53