Blur specific part of an image (rectangular, circular)?

前端 未结 4 1640
孤街浪徒
孤街浪徒 2020-11-27 12:05

I want to blur image rectangular or circular. After googling, I found that it is easy to blur whole image but it difficult to blur specific part of image (rectangular, circu

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 12:25

    I know I'm bit late for the party but it may help someone else who struggling to get this working.

    I've recently needed to implement it and I couldn't find much info on internet about this specific topic ( specially how to get this working when dealing with different UIImageView's scale types such as Scale to Fill, Center and so on). So I've developed a small project that does exactly what you expect.

    enter image description here

    https://github.com/pauloubuntu/ios-blur-pan-gesture

提交回复
热议问题