How to save a web page as image
问题 i have a string with webpage source; how can i save it in byte[] as image? 回答1: Here: http://pietschsoft.com/post/2008/07/C-Generate-WebPage-Thumbmail-Screenshot-Image.aspx Is an example of how to use the WebBrowser.DrawToBitmap method. After you've generated your bitmap, you can compress it using any encoding you want. This is an example from MSDN for how to compress to PNG (lossless and small): How to: Encode and Decode a PNG Image Good luck :) EDIT: In order to get the byte array, you