blur

Alpha Channel Blur

老子叫甜甜 提交于 2019-12-23 17:33:55
问题 I've got this BufferedImage object that's guaranteed to contain only one color. I'm using it to display a sample image to show size, shape & hardness of a brush in a painting tool. I've tried several different blur implementations for hardness... the latest, that seems to work fairly well is this Stack Filter written by Romain Guy. I've got 2 problems. Faster on 1 channel than 4?: None of the blur filters I've tried seem to be quite fast enough... I realize this question has been asked before

Blur not working - Angular 2

匆匆过客 提交于 2019-12-23 09:44:07
问题 I'm trying to set a blue event in angular 2 like so: <div id="area-button" (blur)="unfocusAreaInput()" class="form-group" (click)="focusAreaInput()"> component.ts: import { Component, ViewChild, ElementRef, Output, EventEmitter } from '@angular/core'; import { GoogleplaceDirective } from 'angular2-google-map-auto-complete/directives/googleplace.directive'; @Component({ selector: 'my-area', directives: [GoogleplaceDirective], templateUrl: 'app/find-page/area-picker.component.html', styleUrls:

CSS3 Scale combined with reflect makes blurred elements on chrome

拥有回忆 提交于 2019-12-23 04:12:32
问题 There is a kind of weird bug on chrome when you try to combine css3 scale and css3 reflect on a div with content. I would like to know if someone know a fix or hack to get a sharp result. *The content of my div can be text, video, image, svg... and can contain animation I made the following codepen to illustrate the problem http://cdpn.io/muiKa 回答1: It looks like your best bet is to replace the transform scaling with good old fashioned em scaling. Chris Coyer has a awesome article with

Error when trying to blur image using RenderScript support library on android phone

不想你离开。 提交于 2019-12-23 01:52:20
问题 I'm trying to blur my image, and display it blurred on an RelativeLayout's background with RenderScript, the app works in the emulator but my app in the phone keeps crashing with this error: 08-05 22:21:36.543: E/RenderScript_jni(11549): No GC methods 08-05 22:21:36.553: D/dalvikvm(11549): No JNI_OnLoad found in /system/lib/libRSSupport.so 0x41803ab8, skipping init 08-05 22:21:36.557: E/dalvikvm(11549): ERROR: couldn't find native method 08-05 22:21:36.557: E/dalvikvm(11549): Requested:

Android Box Blur Algorithm

社会主义新天地 提交于 2019-12-22 18:00:30
问题 I have been trying to implement a box blur algorithm in android. The code seems to be fine but when trying to apply it, some areas in the blurred image have big yellow and white smudges all over the blurred photo. Can anyone help me find out what i'm doing wrong? Thanks: Here is what i have: public static Bitmap boxBlur(Bitmap bmp, int range) { assert (range & 1) == 0 : "Range must be odd."; Bitmap blurred = Bitmap.createBitmap(bmp.getWidth(), bmp.getHeight(), Config.ARGB_8888); Canvas c =

CSS: Blur and invert colors for entire page

我怕爱的太早我们不能终老 提交于 2019-12-22 10:36:54
问题 When using both webkit filters "blur" and "invert", only blur works. And if "blur" is removed "invert" works. Also only Chrome and Opera are responding to the code. Is there a way to make this work for recent IE and Firefox versions? body { -webkit-filter: invert(100%); -webkit-filter: blur(5px); -moz-filter: blur(5px); -o-filter: blur(5px); -ms-filter: blur(5px); filter: blur(5px); } 回答1: You could use svg 's foreignObject element to import the entire body 's content into an svg element and

React Native - How to do Blur View like iOS or instagram?

假如想象 提交于 2019-12-22 08:09:45
问题 Background Transparency with BLUR Is it possible to blur view without using background Image? I want to show the parent content on top of the background blur view in modal . Similar kind of this: Tried with react-native-blur : Its actually blurring the background image. I want to blur and show the content which is behind the modal. Tried along with react-native-overlay : But no change. 回答1: well if you are using expo then you should go and check out this link here else if you are like me who

React Native - How to do Blur View like iOS or instagram?

∥☆過路亽.° 提交于 2019-12-22 08:09:04
问题 Background Transparency with BLUR Is it possible to blur view without using background Image? I want to show the parent content on top of the background blur view in modal . Similar kind of this: Tried with react-native-blur : Its actually blurring the background image. I want to blur and show the content which is behind the modal. Tried along with react-native-overlay : But no change. 回答1: well if you are using expo then you should go and check out this link here else if you are like me who

Jquery mobile 1.4 on iOS the fixed elements on bottom of page hide input text onfocus

孤街醉人 提交于 2019-12-21 21:43:34
问题 Hi there I am building cordova 3 app with Jquery mobile 1.4 Safari, and Chrome on my mac have no issues with the following, but when I deploy on the real device, or iOS simulator and want to type in the fields I get the bottom fixed elements of the page moving up and overlapping the input elements. The cursor is blinking in the right position, where the input field is, but the slider of the footer is hiding it. To make it simple my page looks like that: [header fixed] div with input text div

CIFilter is not working correctly when app is in background

最后都变了- 提交于 2019-12-21 06:59:10
问题 We are applying a 'CIGaussianBlur' filter on few images. The process is working fine most of the time. But when the app moves to the background the process produce whit stripes on the image. (Images below, notice that the left and bottom of the image is striped to white and that the image is shrieked a bit in comparing to the original image). The Code: - (UIImage*)imageWithBlurRadius:(CGFloat)radius { UIImage *image = self; LOG(@"(1) image size before resize = %@",NSStringFromCGSize(image