文件名称:c#获取网页截图
文件大小:234KB
文件格式:RAR
更新时间:2015-05-01 18:30:00
c#获取网页截图
void myWebBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { if (myWebBrowser.ReadyState == WebBrowserReadyState.Complete) { Rectangle r = myWebBrowser.Document.Body.ScrollRectangle; myWebBrowser.Height = r.Height; myWebBrowser.Width = r.Width; bitMapPic = new Bitmap(r.Width, r.Height); myWebBrowser.DrawToBitmap(bitMapPic, r); picWeb.Image = bitMapPic; } }
【文件预览】:
ScreenshotWebPage
----ScreenshotWebPage()
--------graphicconverter icon.ico(167KB)
--------Screensho.resx(256KB)
--------Program.cs(482B)
--------Screensho.cs(2KB)
--------Properties()
--------ScreenshotWebPage.csproj.user(478B)
--------obj()
--------bin()
--------ScreenshotWebPage.csproj(5KB)
--------Screensho.Designer.cs(7KB)
----ScreenshotWebPage.sln(893B)
----ScreenshotWebPage.suo(15KB)