How To Unblur Square Portion Of Blurry Image On Touch Android
What I want to do: On mouse hover of Blurry image, it shows unblur same image in square shape like following image. (image is completely blur, on mouse hover unblur image shown in
Solution 1:
You need to implement it differently.
You need two images (instead of one):
Blurred one. Which will be always drawn as background (or in a view underneath). Read here how to blur the image.
Normal one. This one should be drawn on top of blurred one using the square mask. Check this answer.
MORE DETAILS:
It can be done in the same way, how I explained in this answer, but with Mode.DST_IN
Xfermode instead of PorterDuff.Mode.CLEAR
.
Hope this will help you.
Post a Comment for "How To Unblur Square Portion Of Blurry Image On Touch Android"