|
Rank: Newbie Groups: Member
Joined: 11/2/2014 Posts: 6
|
Hi,
I have converted my browser application from the WinForms WebBrowserControl to the EO WebView with most functionality now complete and I'm very pleased with the results.
However a badly missed capability is to be able to use Control.DrawToBitmap on the browser in order to create thumbnails etc. E.g. grab a screen shot.
I've tried the managed DrawToBitmap with no success.
I've used PInvoke to send a WM_PRINT message. I've tried all the handles provided by SDK's EnumerateChildWindows with no success.
I've used PInvoke to call PrintWindow again trying all handles with no success.
I would be glad to hear how this is achieved?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, You will need to use this method to do screen capture: http://www.essentialobjects.com/doc/6/eo.webbrowser.webview.capture_overloads.aspxThis is because EO.WebBrowser actually uses GPU to do the drawing. That does not go through the traditional WM_PRINT/WM_PAINT messages. Hope this helps. Please feel free to let us know if you have any more questions. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/2/2014 Posts: 6
|
Hi,
I appreciate the quick reply.
Don't know how I missed that method... - and very nicely implemented!
Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
You are very welcome. Please feel free to let us know if there is anything else.
Thanks!
|
|