I'm using WebBrowser control to take screen shots of web pages and I'm able to get it working using IViewObject.Draw(). My question is that how can I draw partial region of the control. For example from (0px, 0px) to (200px, 200px).
Any insights?
根据情况可能更简单的另一种方法是将图像简单地裁剪到元素的边界。
I found a solution pretty much close to what I want. I ran JQuery scripts in the WebBrowser
using InvokeScript()
and hid all the controls in the page except what I want to take a screen shot. It worked well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.