Get bitmap of an web page using WebBrowser Control in .net compact framework

試著忘記壹切 提交于 2019-12-11 05:46:50

问题


I am trying out to get the bitmap of web page loaded in web browser control, but found that WebBrowser.CreateGraphics() and even WM_PRINT (DrawToBitmap) message response is also missing in .net compact framework.

After searching through internet found one of the .net sample code which gets complete web page in bitmap

When i tried porting it through compact framework for windows mobile 6.0 found that most of the API and methods missing.

How should i go ahead with it...

Any help in this regard will greatly appreciated. Thanks- Ramanand Bhat


回答1:


I've tried to take a snapshot of a web page via an asp.net application. I guess parts of that exercise would be useful to you.

You'd be interested in these 2 links:

http://69.10.233.10/KB/cs/webpage_thumbnailer.aspx http://deostroll.spaces.live.com/blog/cns!428DAD5E3A907C31!181.entry

Hope this helps




回答2:


Probably the simplest way is to just take a full screen capture, then clip the result down to the bounds of the browser control.



来源:https://stackoverflow.com/questions/1366819/get-bitmap-of-an-web-page-using-webbrowser-control-in-net-compact-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!