Saving Image Using Awesomium

百般思念 提交于 2019-12-11 12:12:45

问题


I'm using Awesomium .NET 1.7.0.5 and am trying to retrieve an image element from page and save it into memory/disk. In the earlier versions, this can be achieved by calling webView.Render(). However I noticed they have removed this in the recent releases. Is there any workaround for this?

Note: I do not want to redownload the image, so retrieving the image URL then download it again is not an option.


回答1:


You can use something like:

((BitmapSurface) view.Surface).SaveToPNG("c:\\temp\\Page.png");

Best



来源:https://stackoverflow.com/questions/15689902/saving-image-using-awesomium

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!