如何在 Monotouch 中对 UIImageView 进行运动模糊效果? [英] How to do a motion blur effect on an UIImageView in Monotouch?

查看:17
本文介绍了如何在 Monotouch 中对 UIImageView 进行运动模糊效果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 MonoTouch 中进行实时运动模糊的方法是什么?

What's the way to do a realtime motion blur in MonoTouch?

在滚动惯性图片库时,我需要在 UIImageView 上应用运动模糊效果,以强度和方向作为参数,就像在 Photoshop 中一样.

I need to apply a motion blur effect on an UIImageView when scrolling an inertial picture gallery, with strength and direction as parameters, as in Photoshop.

我在 CocoaTouch 或 CoreAnimation 或 iOS SDK 中的任何地方都找不到任何模糊或运动模糊过滤器.

I can't find any blur or motion blur filter in CocoaTouch or in CoreAnimation or anywhere in the iOS SDK.

是否有一些 2D 效果库可以从 MonoTouch 使用,并带有适用于 iPhone 的实时模糊过滤器?

Is there some 2D effects library usable from MonoTouch with realtime blur filters that are good for the iPhone?

提前致谢.

推荐答案

我找到了一个很好的开源库,可以在 UIImage 上做很多效果:

I've found a good open source library to do many effects on UIImage:

https://github.com/gdawg/uiimage-dsp

它还使用 Accelerated 框架在 iOS 4.0 上稍微加快了速度.

It also uses the Accelerated framework to speed up the things a little on iOS 4.0.

现在,要是有一个 MonoTouch 包装器就好了……

Now, if only there was a MonoTouch wrapper of this...

这篇关于如何在 Monotouch 中对 UIImageView 进行运动模糊效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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