Create KenBurns with minimum possible zoom

2019-08-21 07:27发布

问题:

I am using this library

I am trying to create app with minimal possible zoom. In my application I have small area where the images are presented as slide show. But the images are big so when kenburns effect starts it it zoomed too much.

How can I set the zoom level ?

回答1:

You need to create your own TransitionGenerator. If you want the keep the random movement and control the zoom, a good place to start is to base your custom TransitionGenerator off this one. The highlighted line (120) uses a random zoom factor. Hardcoding it will do what you need.