在 Android 中使用 HTML 页面作为动态壁纸

发布于 2024-10-20 23:18:24 字数 75 浏览 7 评论 0原文

我可以使用 HTML 页面作为动态壁纸吗?
或者是否可以将网页捕获为图像并将其设置为壁纸?

任何帮助将不胜感激。

Can I use a HTML page as a Live Wallpaper?
Or is it possible to capture a web page as an image and set it as a wallpaper?

Any help would be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

╭ゆ眷念 2024-10-27 23:18:24

我是上述 WebLiveWallpaper 的作者。它可以使用这两种技术:显示来自 snapr、webthumb 的 Web 快照……但通常它实际上是一个 WebView,它有缺点,但也有一些优点。网络快照/缩略图无法足够快地更新动画图像。但它避免了动态壁纸中“被黑”的 WebView 所存在的问题(例如丢失图像、巨大的内存占用)。

我认为你想要的是使用其中之一:
http://www.websnapr.com/
http://webthumb.bluga.net/home
http://snapr.seekxl.de

他们的网站上都有更多更好的文档,我无法在此处放入。大多数情况下,它只是他们的网址中的图片以及您的密钥和一些设置。

I am the author of the mentioned WebLiveWallpaper. It can use both techniques: Showing a web snapshot from snapr, webthumb, ... but normally it is really a WebView which has disadvantages but also some advantages. A web snapshot/thumb image cannot update animated images fast enough. But it avoids the problems a 'hacked' WebView in a live wallpaper has (like missing images, huge memory footprint).

I think what you want is using one of these:
http://www.websnapr.com/
http://webthumb.bluga.net/home
http://snapr.seekxl.de

They all have more and better documentation on their sites than I can put in here. Mostly it is simply a picture from their url with your key and some settings.

嗫嚅 2024-10-27 23:18:24

市场上有一个名为 WebLiveWallpaper 的应用程序这样做。其中有一个选项可以设置刷新网页视图的频率,这让我相信它只是简单地拍摄页面的快照并以某种方式将其呈现为图像。不幸的是我不知道如何进行设置。但我认为你肯定会想走图像路线。

编辑以下是一些可能对您有帮助的链接:

打开用于在服务器端生成网页缩略图的源 Java 库

http://www .acasystems.com/en/web-thumb-activex/

http://www.fileguru .com/apps/convert_html_to_image_in_java

我以前没有使用过任何这些组件,所以我对它们并不乐观,但它们似乎可以满足您的需求。

There is an app on the market called WebLiveWallpaper that does this. There is an option in it for how often to refresh the view of the web page, which leads me to believe that it is simply taking a snapsnot of the page and presenting it as an image some how. Unfortunately I wouldn't know how to go about setting that up. But I think you're definitely going to want to go the image route.

Edit Here are some links that may help you out:

Open source Java library to produce webpage thumbnails server-side

http://www.acasystems.com/en/web-thumb-activex/

http://www.fileguru.com/apps/convert_html_to_image_in_java

I have not used any of these components before so I'm not positive about them but they seem like they can do what your looking for .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文