Blur an UIImage on change of slider

前端 未结 3 1551
走了就别回头了
走了就别回头了 2021-02-02 04:00

I have tried gaussian blur and checked out all the questions on stackoverflow but no one of them solved my crash issue.Please help is there is any other way to blur image other

3条回答
  •  一生所求
    2021-02-02 04:33

    What you probably want is a Box Blur algorithm. It is about 10 times faster than Gaussian blur and produces nice results. I have the code running on Android, I just haven't ported it to iOS yet. Here is the source.

    Should only take about 10 minutes to port to iOS. The functions will work as is, you just need to access the image bytes (as you are doing in the source code above) and feed them to functions.

提交回复
热议问题