Welcome Guest Search | Active Topics | Sign In | Register

I cannot get a screen bitmap Options
LogicoSoft
Posted: Sunday, November 2, 2014 2:14:41 PM
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?
eo_support
Posted: Sunday, November 2, 2014 3:40:27 PM
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.aspx

This 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!
LogicoSoft
Posted: Sunday, November 2, 2014 4:59:53 PM
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.



eo_support
Posted: Sunday, November 2, 2014 8:26:13 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.