Questions tagged [blur]

The visual effect. For the JavaScript "loss of focus"-event, use [onblur].

For the JavaScript "loss of focus"-event, use [onblur]. For iOS 8 and above, you can use UIVisualEffectView to add blur effect on View.

1903 questions
21
votes
1 answer

How to use IndexOf in JQuery

if($('#this').val().indexOf('4289')){ Do something else Do something. This works only with that 4289, When I try to add other numbers to be indexed next to it using 'or', it doesn't work. How should I put other number. E.g…
Blessing Thinker
  • 261
  • 1
  • 4
  • 14
20
votes
1 answer

How do I use a GLSL shader to apply a radial blur to an entire scene?

I have a radial blur shader in GLSL, which takes a texture, applies a radial blur to it and renders the result to the screen. This works very well, so far. The problem is, that this applies the radial blur to the first texture in the scene. But…
Patrick Oscity
  • 53,604
  • 17
  • 144
  • 168
20
votes
6 answers

Android Blur View (Blur background behind the view)

I am trying to make the bottom part of an Image blur for the view on top it like in the image. I tried blurring it using Rendenscript but I am not able to blur only the part behind the view. :( I have seen many libraries but almost all of them blur…
Atul O Holic
  • 6,692
  • 4
  • 39
  • 74
20
votes
3 answers

Alternative to "FLAG_BLUR_BEHIND" in Android?

I can see that when I use the same flag as shown on the API-demos for blurring the background, I get a warning that it's deprecated: "The field WindowManager.LayoutParams.FLAG_BLUR_BEHIND is deprecated". I've read about it, and I've found that…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
19
votes
3 answers

Gaussian blur leads to white frame around image

I'm applying a blur effect to an image in WPF like so: As you can see, the radius is…
Thorsten Dittmar
  • 55,956
  • 8
  • 91
  • 139
19
votes
2 answers

How to prevent Android's drawBitmap from only drawing black images?

As per the original question, The end result is a rounded-rect png in an ImageView with a natural looking drop shadow. I have the shadow working, but when it draws, it makes the entire image black. How can I prevent the original image (definitely…
coneybeare
  • 33,113
  • 21
  • 131
  • 183
19
votes
4 answers

jQuery: On form input focus, show div. hide div on blur (with a caveat)

I am able to make a hidden div show/hide when an input field is in focus/blur using the following code: $('#example').focus(function() { $('div.example').css('display','block'); }).blur(function() { $('div.example').fadeOut('medium'); …
Lyon
  • 7,354
  • 10
  • 33
  • 46
19
votes
3 answers

Android blur surfaceview used in camera

I have a camera preview in my android app. As you all probably know it is implemented by a surfaceview in android. In my photo app, which allows users to take pictures, I want to blur the camera preview (the surface view) if the user has not logged…
user1233587
  • 2,033
  • 4
  • 24
  • 24
19
votes
7 answers

How to implement a box or gaussian blur on iOS

I want to be able to take an image and blur it relatively quickly (say in 0.1 sec). Image size would almost never be larger than 256 x 256 px. Do I have to loop thru every pixel and average them with neighbors or is there a higher-level way that I…
willc2
  • 38,991
  • 25
  • 88
  • 99
18
votes
4 answers

jQuery $(window).blur vs native window.onblur

What are the advantages of using jQuery's $(window).blur(function() { ... }) to attach an event handler versus setting it directly with window.onblur = function() { ... } It seems that the latter is less robust because it only supports one blur…
Andrew Mao
  • 35,740
  • 23
  • 143
  • 224
17
votes
3 answers

Gaussian blur and convolution kernels

I do not understand what a convolution kernel is and how I would apply a convolution matrix to pixels in an image (I am talking about doing a Gaussian Blur operation on an image). Also could I get an explanation on how to create a kernel for a…
user400055
17
votes
6 answers

Round UIVisualEffectView

I have a map. On the map, I'd like to draw small, blurred circle. I've implemented something like this: UIVisualEffect *visualEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; self.visualEffectView = [[UIVisualEffectView alloc]…
Nat
  • 12,032
  • 9
  • 56
  • 103
16
votes
4 answers

Blur Behind Div CSS

I am working on a website, and I need to blue the background behind a div, and I am unable to find a way to do it using CSS. I found an article that showed how to do it, but I was unable to accurately replicate it. Here is the article:…
RedXTech
  • 406
  • 2
  • 7
  • 17
16
votes
3 answers

How to Blur effect apply on UIView in iOS?

In my application i want to apply blur effect on uiview.So how can i achive blur effect. I tried by below code: UIGraphicsBeginImageContext(scrollview.bounds.size); [scrollview.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage…
Monika Patel
  • 2,287
  • 3
  • 20
  • 45
16
votes
2 answers

CSS Blur in IE 11

I have been trying to get A css blur effect in IE 11 for hours and did not make any progress. I tried to use the following simple html: