如何在iPhone上高效快速地模糊图像? [英] How to efficiently and fast blur an image on the iPhone?

查看:127
本文介绍了如何在iPhone上高效快速地模糊图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有UIImage或CGContextRef或纯位图数据(直接访问解压缩的ARGB-8像素),我最好选择尽可能快地模糊半径为10像素的图像?

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 as possible?

推荐答案

使用堆栈模糊,框模糊或使用OpenGL纹理模糊(谷歌前两个,并检查后者的Apple开发样本)。

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).

这篇关于如何在iPhone上高效快速地模糊图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆