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,

CodePudding user response:

reference 1st floor interacting in a professional developer 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 better,

Great god actually to reply, thank you, that also is webbrowser to draw any canvas this HTML is less, but in the visualization window is fully loaded out, but when drawtobigmap painting not to come out
  • Related