BufferedImage in Android

前端 未结 3 1010
既然无缘
既然无缘 2020-11-29 12:04

I\'ve an app that takes a camera picture and saves on sdcard as jpeg. i want to distort the picture with a spherize filter. I can read the jpeg to a bitmap, but the code i h

3条回答
  •  臣服心动
    2020-11-29 12:30

    You can use Bitmap instead of bufferedimage but this won't resolve your problem since you need make changes on TransformFilter because this code eventually call the super.filter( src, dst ); which is making the actual job. If your only goal is to implement spherize filter, this link provides a direct algorithm for spherize filter which would be easier to port to Android.

提交回复
热议问题