Home > Net > On the.net WebBrowser. DrawToBitmap method to capture the map HTML page is not successful
On the.net WebBrowser. DrawToBitmap method to capture the map HTML page is not successful
Time:02-10
Use WebBrowser. DrawToBitmap in winform WebBrowser to load a map page to load, but like the map page cut out pictures are blank,
Screenshots baidu pattern example:
CodePudding user response:
WebBrowser control may only apply to the most traditional HTML element, such as & lt; Img> , such as the use of canvas or SVG drawing may be rejected, you can use a WebBrowser function to return the specific & lt; Div> The window coordinates (x, y), then calls the Windows SDK compatible screenshot function to record images, using better web controls, you can capture the better,