How to efficiently and fast blur an image on the iPhone?

前端 未结 3 936
一个人的身影
一个人的身影 2021-02-04 22:07

If I have a UIImage or CGContextRef or the pure bitmap data (direct access to decompressed ARGB-8 pixels), what\'s my best option to blur an image with radius 10 pixels as fast

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 22:48

    Either use a stack blur, a box blur or use the OpenGL texture blur (google the first two, and check the Apple dev samples for the latter).

提交回复
热议问题