Pick image from sd card, resize the image and save it back to sd card

前端 未结 6 1348
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 14:11

I am working on an application, in which I need to pick an image from sd card and show it in image view. Now I want the user to decrease/increase its width by c

6条回答
  •  感动是毒
    2020-12-13 15:01

    You should ideally use multitouch instead of using a button to increase/decrease width. Here's an amazing library. Once the user decides to save the image, the image translation matrix must be stored persistently (in your sqlite database). Next time the user opens the image, you need to recall the matrix and apply it to your image.

    I've actually done this before.

提交回复
热议问题