Tag: screenpage screenshot

以编程方式截取网页

如果输入URL,如何以编程方式拍摄网页的情景? 这就是我现在所拥有的: // The size of the browser window when we want to take the screenshot (and the size of the resulting bitmap) Bitmap bitmap = new Bitmap(1024, 768); Rectangle bitmapRect = new Rectangle(0, 0, 1024, 768); // This is a method of the WebBrowser control, and the most important part webBrowser1.DrawToBitmap(bitmap, bitmapRect); // Generate […]