【问题标题】:Progressive Image Rendering, loading image pixel by pixel & updating imageview in imageLoader渐进式图像渲染,逐像素加载图像并在 imageLoader 中更新图像视图
【发布时间】:2015-04-02 05:56:55
【问题描述】:

我正在开发一个需要在列表中加载服务器图像的应用程序。但是显示图像的方式有点不同。我需要在下载图像时显示图像,即逐像素显示。最初,图像设置为模糊图像,而不是下载后,它变得更清晰,并生成原始图像。如果您想了解我在说什么,可以参考以下链接:

Progressive Image Rendering

在这你可以看到高级PNG风格的二维交错渲染的演示(第二个)。我看了很多,但没有找到任何与我的查询相关的答案。

任何形式的帮助都将是可观的。

提前致谢。

【问题讨论】:

    标签: java android listview image-processing image-loading


    【解决方案1】:

    试试 Facebook 的 Freso 项目:http://frescolib.org/#streaming

    【讨论】:

      【解决方案2】:

      如果您使用 Google 推荐的用于在 Android 中加载图像的库 Glide,您可以使用 .thumbnail 实现这种行为正在加载。

      Glide.with( context )
               .load( "image url" )
               .thumbnail( 0.1f ) //rate of the full resoultion to show while loading
               into( imageView ); //ImageView where you want to display the image
      

      以下是对库和缩略图的更广泛解释: https://futurestud.io/blog/glide-thumbnails

      【讨论】:

      • Glide 中的缩略图选项不做渐进式 JPEG 流。它下载整个图像,然后将其渲染为其分辨率的一小部分。据我所知,唯一这样做的图书馆是 Fresco。
      猜你喜欢
      • 1970-01-01
      • 2019-09-27
      • 2013-01-16
      • 1970-01-01
      • 1970-01-01
      • 2018-04-04
      • 1970-01-01
      • 2021-05-19
      • 2022-01-05
      相关资源
      最近更新 更多