使用Awesomium保存图像

编程入门 行业动态 更新时间:2024-10-09 18:18:08
本文介绍了使用Awesomium保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用Awesomium .NET 1.7.0.5并尝试从页面检索图像元素并将其保存到内存/磁盘中。在早期版本中,这可以通过调用webView.Render()来实现。但是我注意到他们在最近的版本中删除了它。有没有解决方法?

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?

注意:我不想重新下载图像,因此检索图像URL然后再次下载不是一种选择。

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

推荐答案

您可以使用以下内容:

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

最佳

更多推荐

使用Awesomium保存图像

本文发布于:2023-11-13 03:11:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583260.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图像   Awesomium

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!