4

I'm wondering if it's possible to blur everything behind a view... Those things are expected to move.

Example: I have an UIViewcontroller containing an UITableView, and a small UIView over it, wich can be moved with touch. I want this view to be transparent but blurring anything behind it, to achieve an effect similar to this one : http://www.codeproject.com/KB/dialog/rtaGlassEffectLib/rtaGlassEffect.png

So... possible or not ?

ingham
  • 1,636
  • 15
  • 30

2 Answers2

3

If things are not changing behind the view you can take a screenshot (See this question: How to capture current view screenshot and reuse in code? (iPhone SDK)) then use the Gaussian blur routines from this library: http://code.google.com/p/simple-iphone-image-processing/

So, yes it's possible, but not super easy. You can find similar questions here that will probably help: stackoverflow.com/search?q=[iphone]+blur

Community
  • 1
  • 1
theChrisKent
  • 15,029
  • 3
  • 61
  • 62
  • Thanks, interesting. And what if things move behind ? – ingham Mar 10 '11 at 19:28
  • @ingham, no idea. You will probably need to look deeper into coregraphics and I'm not sure it's possible or worth it. Perhaps you should update your answer to indicate that that is a requirement (add it in the title) and maybe you'll get more specific responses. – theChrisKent Mar 10 '11 at 19:34
  • 2
    If you're going to have things moving around and you're planning on using Quartz for example, I'd say that the framerate of the resulting animation would be pretty terrible because of the complexity of the blur routines. – sudo rm -rf Mar 10 '11 at 20:00
1

I think you can use this library:

https://github.com/alexdrone/ios-realtimeblur

Lucas
  • 1,135
  • 1
  • 9
  • 20