blur

How to draw a blurry circle on HTML5 canvas?

十年热恋 提交于 2019-11-27 07:05:42
I'm able to draw a simple circle on HTML5 canvas, but I'd like to add some blur around it. What I found was this website which explains the shadowBlur property which can come in handy here. However, I cannot manage to make the circle itself blurry. What the shadowBlur property basically does is painting some blur effect after the regular circle has been drawn. What I've tried so far I've put on jsFiddle . As can be seen, it's a solid filled circle with some blur effect around it - the two parts do not blend into each other at all. What I actually would like to achieve is that the circle itself

<div> blur of part of Background image with css

会有一股神秘感。 提交于 2019-11-27 04:26:29
I use this Is it possible to use -webkit-filter: blur(); on background-image? solution to make blurry backgroung image and it works great! But I want to make some <div> over background and make it blurry. So background should be clear and blurry under <div> only. If I move blur filter on that div it became blur, but background image still clear. HTML is simple: <body> <div class = "background"></div> <div class = "content"></div> </body> CSS is: .content{ width: 70%; height: 70%; border:2px solid; border-radius:20px; position: fixed; top: 15%; left: 15%; z-index:10; background-color: rgba(168,

JavaFX effect on background

依然范特西╮ 提交于 2019-11-27 03:41:18
I'm using this to make a iOS-themed JavaFX2 (Java7) application with a frosted glass effect. The problem is that this code uses its effect on an ImageView. I'd like it to use its effect on whatever's behind the window, like this: Is there anyway to do that? I'd also like that small drop-shadow effect you see around the above image. To be clear, I don't want that slider or anything, just the effect of being able to see through the window and having that slight shadow around the edges. I want to use this iOS7-ish effect instead of aero, though. This might be important: I'm using a modified

Android: fast bitmap blur?

丶灬走出姿态 提交于 2019-11-27 02:43:30
I've been searching the past three days for a built-in, hardware-accelerated way of bluring a bitmap with android. I stumbled upon certain work-arounds like shrinking the bitmap and scaling it up again, but this method produced low quality results which were not suitable for my image recognition requirements. I also read that implementing convolution with shaders or JNI is a good way to go, but I cannot believe that there is no built-in solution in the Android framework for this very common purpose. Currently I've ended up with a self-written convolution implementation in Java, but it is

AlertDialog with Blur background in position center

岁酱吖の 提交于 2019-11-27 02:28:23
问题 Question Tried to blur (not DIM) the background of a Dialog . and FLAG_BLUR_BEHIND is deprecated . Approach is, take a screenshot form the currant view and blur it.Then attach to the background ,When AlertDialog appears, and it works. but AlertDialog is always in the Top not in the center.(check the image) WindowManager.LayoutParams has no effect after attach .(before attach it to the background,alert can position to center, but after attaching the blur view to the background AlertDialog

html canvas shape blur filter

女生的网名这么多〃 提交于 2019-11-27 02:27:06
问题 There must be a way to do this. I have drawn a shape with the html5 canvas and I would like to blur it. As far as I know there is no native method so I assume a js library is needed. The problem is most libraries only blur images like this one for example. Is this possible? 回答1: you can use CSS to blur the canvas. If it's just the shape you want to blur then the shape will need to be on its own separate layer (canvas), which you could create on the fly. Example: canvas.style.webkitFilter =

Full Page Blur in CSS

不羁的心 提交于 2019-11-27 01:30:05
问题 How can I blur a whole page using CSS? Other elements such as images are allowed. 回答1: This is working in Firefox and WebKit using the filter: blur(radius) . See Can I Use: CSS filters for which browsers can support this. .blurredElement { /* Any browser which supports CSS3 */ filter: blur(1px); /* Firefox version 34 and earlier */ filter: url("blur.svg#gaussian_blur"); /* Webkit in Chrome 52, Safari 9, Opera 39, and earlier */ -webkit-filter: blur(1px); } The blur.svg for Firefox 34 or below

Blur background of Navigation Drawer

↘锁芯ラ 提交于 2019-11-27 00:48:56
问题 How would I go about create a live blur on a Navigation Drawer, so when you pull out the drawer the background of the list is blurred background of the fragment displayed behind it? I have looked but mainly found BitMap blurs, and nothing that is live. 回答1: The process involves the following stages: Get a snapshot of the whole drawer layout. Crop it to the exact size of your menu. Downscale it quite a bit (a factor of 8 is pretty good). Blur that image. Have a custom view that displays part

Frosted Glass Effect in JavaFX?

依然范特西╮ 提交于 2019-11-27 00:41:01
I'm making an iOS7-themed JavaFX2/FXML project and I was wondering how I could make a Rectangle object have a iOS7-like frosted glass effect. I'd also like it to have a small shadow. This is tricky, since you might be able to see the shadow behind the semi-transparent object. I'd just like it to be present around the edges. Is this possible? Here's a picture showing the desired effect (not including the small drop-shadow): UPDATE: Here's a continuation of the issue. This is going to look amazing :D. jewelsea Sample Solution Run the program below and scroll or swipe up to show the glass pane.

Blur Background Behind AlertDialog

*爱你&永不变心* 提交于 2019-11-27 00:06:50
As we know from API 14 the Below Blur has been deprecated dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); Is there any alternative for this to make the Screen Blur behind Dialog I have tried FAST blur nitesh This is How I have made Background of my Dialog blur - Code and Concept HERE - Github Project HERE Steps 1) Take the Snapshot of Your Background using Below Code private static Bitmap takeScreenShot(Activity activity) { View view = activity.getWindow().getDecorView(); view.setDrawingCacheEnabled(true); view.buildDrawingCache(); Bitmap b1 = view.getDrawingCache();