如何慢慢地滚动图像中的presentation一个放大样? [英] How to slowly scroll a zoomed in image like in a presentation?

查看:227
本文介绍了如何慢慢地滚动图像中的presentation一个放大样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我希望与他们之间的一些过渡显示,就像在presentation一些高品质的图像。

I have some high quality images which I wish to show with some transition between them, like in a presentation.

由于Android有很多的屏幕类型,为每个presentation的帧,我希望有在图像中被放大到(如果需要)的特定区域/角落,慢慢地自动滚动的一些方向(取决于我已经放大)。

Since Android has many screen types, for each "frame" of the "presentation", I wish to have the image to be zoomed in to a specific area/corner (if needed) and slowly auto-scroll in some direction (depending on where I've zoomed in).

这样的事情发生在一些网站和屏幕保护程序显示您的图片画廊。

Such a thing occurs on some websites and on screen savers which show your gallery of images.

这意味着,在某些屏幕,只有图像中的一部分将被示出,但其他部分将滚动时被揭示。

This means that in some screens, only a part of the image would be shown, yet other parts would be revealed while scrolling .

在每一个缓慢滚动,我切换到下一张图片,做同样的过程。

After each slow-scrolling, I switch to the next image and do the same process.

我找不到了这个功能的名字,所以我不知道去哪里找。

I couldn't find out the name of this feature and therefore I couldn't know where to look for it.

图像放大到左上角,并且慢慢地被滚动到右下角。

Image is zoomed to the top-left corner, and is slowly being scrolled to the bottom-right corner.

有没有办法使用API​​来实现呢?也许有这份工作库?

Is there a way to achieve it using the API ? Maybe there is a library for this job?

当然,解决方案必须不能使用过多内存,不管是什么图像的质量。

Of course, the solution must not use too much memory no matter what is the quality of the images.

推荐答案

好了,我找到了一个不错的项目称为 NotBoringActionBar ,其中有以同样的方式我已经要求图像之间交换的同样的效果。

OK, I've found a nice project called NotBoringActionBar , which has the same effect of swapping between images in the same manner i've asked for.

类是负责这被称为KenBurnsView.java。

The class that is responsible for this is called "KenBurnsView.java" .

原来的库是 KenBurnsView

The original library is KenBurnsView .

编辑:千万注意,这不符合动态创建位图很好地工作,我已经张贴了关于它的here.

do note that this doesn't work well with dynamically created bitmaps, and I've posted about it here.

这篇关于如何慢慢地滚动图像中的presentation一个放大样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆