all I want to make a filter just like what instagram's. I use an ImageView with colorFilter to accomplish the effect, but I don't know how to save the filtered image as a file. If I savethe bitmap directly, the original bitmap was stored without filter effect. If I store the imageview's pixels, its size is not as the same as the bitmap. And I dont want to calculate pixel by pixel for a new bitmap for effect reason. I was blocked on this problem for days.Would anybody help me ? Thanks. BR QiuPing
Asked
Active
Viewed 704 times
2 Answers
0
I think this might be of help to you. Check out the Saving Internal and Saving External sections.
http://developer.android.com/guide/topics/data/data-storage.html
You're going to want to get your image into a bitmap, like this:
0
I found a better solution now. I used a Canvas on the original bitmap, and paint with ColorMatrixColorFilter. Different ColorMatrixColorFilter take different use. Changing brightness, changing saturation, changing contrast. Make combinations, then filters were created.

qiuping345
- 148
- 9
-
How you saved the bitmap because when i try to get bitmap all my ColorFilters are removed... – Mohammed Rampurawala Dec 18 '17 at 07:37
-
this is something written 5 years ago. sorry I could not find it now. – qiuping345 Dec 18 '17 at 18:54
-
Thanks I have figured that out :) – Mohammed Rampurawala Dec 19 '17 at 10:16