BufferedImage in Android

前端 未结 3 1005
既然无缘
既然无缘 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:27

    No. You can't use BufferedImage because, like you said, javax.imageio isn't in the Android SDK. The Bitmap class, however, does support getting individual pixels using the getPixel() and getPixels() methods so you should be able to use those to do any type of image transform you want to do.

提交回复
热议问题