How to implement image distortion effects in Android

纵饮孤独 提交于 2019-11-30 23:55:06

问题


I want to implement distortion effects on image in Android. I did the same in iOS(iPhone and iPad) by using GPUImage framework. Is there any framework or library available in Android to do the same. I want to implement following distortion effects in Android.

pinch distortion

swirl distortion

bulge distortion

stretch distortion

Please provide any solution for this. Thanks in advance.


回答1:


There is a very basic example in your SDK folder into the APIDemos project. See SDK_DIR/samples/android-*/ApiDemos/src/com/example/android/apis/graphics/BitmapMesh.java.

Also answers for Resources for image distortion algorithms may help.



来源:https://stackoverflow.com/questions/13137115/how-to-implement-image-distortion-effects-in-android

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