开发者

android how to create fisheye effect on jpeg

开发者 https://www.devze.com 2023-02-18 05:44 出处:网络
I\'m wanting to distort a jpeg image in android. The distortion is a fisheye effect. Are there any libraries i can import into android that i can use to 开发者_如何学Cachieve this effect.

I'm wanting to distort a jpeg image in android. The distortion is a fisheye effect. Are there any libraries i can import into android that i can use to 开发者_如何学Cachieve this effect.

thanks mat.


Perhaps canvas.drawBitmapMesh(...) could do it. There is an example in ApiDemos under com.example.android.apis.graphics / BitmapMesh.java

In your Exclipse create a new Android project and select "Create project from existing sample". Choose target android version and then ApiDemos.

Run the application and see an effect of this method in Graphics/BitmapMesh

0

精彩评论

暂无评论...
验证码 换一张
取 消