Create KenBurns with minimum possible zoom

牧云@^-^@ 提交于 2019-12-25 08:54: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.



来源:https://stackoverflow.com/questions/46876450/create-kenburns-with-minimum-possible-zoom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!