effects

Blur the background of the WPF container

℡╲_俬逩灬. 提交于 2019-11-29 04:03:56
Ultimately, what I want to achieve is a replication to some extend, of an Aero glass functionality of a WPF content control. If I apply the BlurEffect to a StackPanel that contains a TextBlock , I will have the TextBlock 's text blurred. Consider an examples: No blur and with <BlurEffect Radius="5" KernelType="Gaussian"/> But is there a WPF way to blur the background behind the panel, and not it's contents? The background of the StackPanel is a desktop, and the window that hosts it is set to AllowTransparency="True" to allow the custom-shaped look. What the background of the StackPanel? an

Processing Android video frame by frame while recording

半腔热情 提交于 2019-11-28 19:23:45
问题 What I am attempting to do is create an application that adds effects to videos while recording. Is there any way to have a callback method receive the frame, then apply an effect to it and have that recorded. There is currently an application on the Android Market (Videocam Illusion) that claims it is the only application that can do this. Anyone know how Videocam Illusion does this or have some links to possible tutorials outlining video processing for Android? This is a similar question

Blurring an image via CSS?

我与影子孤独终老i 提交于 2019-11-28 19:05:06
On many smartphones (Samsung Galaxy II being an example) when you browse through a photo gallery, its blurred copy is laid out in the background. Can this be achieved by CSS dynamically (ie. without the copy of the photo being prepared upfront saved)? Is there any kind of complex CSS image filter to blur an image? You can use CSS3 filters . They are relatively easy to implement, though are only supported on webkit at the minute. Samsung Galaxy 2's browser should support though, as I think that's a webkit browser? With CSS3 we can easily adjust an image. But remember this does not change the

@ngrx Effect does not run the second time

北城余情 提交于 2019-11-28 12:10:02
I've just started learning about @ngrx/store and @ngrx.effects and have created my first effect in my Angular/Ionic app. It runs ok the first time but if I dispatch the event to the store again (i.e when clicking the button again), nothing happens (no network call is made, nothing in console logs). Is there something obvious I'm doing wrong? Here's the effect: @Effect() event_response$ = this.action$ .ofType(SEND_EVENT_RESPONSE_ACTION) .map(toPayload) .switchMap((payload) => this.myService.eventResponse(payload.eventId,payload.response)) .map(data => new SentEventResponseAction(data)) .catch(

Playing sound effect (CLICK/NAVIGATION_RIGHT) for button clicks - Android

一世执手 提交于 2019-11-28 11:44:05
I'm trying to use the playSoundEffect () method to play a sound effect when a button is clicked, but so far its' proved very difficult for some reason. I have defined the following. <ImageButton android:id="@+id/Button_flip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="FLIP!" android:src="@drawable/flip" android:soundEffectsEnabled="true"> </ImageButton> Then, button_flip.playSoundEffect(android.view.SoundEffectConstants.CLICK); is called in onCreate() method. But I cannot seem to get it to sound when I click the button. What am I missing here? The

Spark effects: why is procedural code preferred over triggers?

蓝咒 提交于 2019-11-28 10:33:15
问题 In Flex 3, MX effects could be triggered like this: <mx:Resize id="myEffect" /> <mx:Button mouseDownEffect="{myEffect}" /> In Flex 4, Spark effects are triggered like this: protected function onClick(event:MouseEvent):void { resizeEffect.end(); resizeEffect.play(); } ... <s:Resize id="resize" /> ... <s:Button click="onClick(event)" /> What was the reason to use this less declarative and longer approach? I couldn't find the answer anywhere in the docs. (Two things to note: There might be small

jQuery .animate() Issues

删除回忆录丶 提交于 2019-11-28 07:33:24
问题 I'm trying to make a autoscrolling/carousel like function for an unordered list of images. When you mouse over the containing div its calling a function that's job is to animate the margin on the <ul> $(".thumbs").animate({"margin-top": (currentMargin - 10) + "px"}, function(){ console.log("margin-top" + (currentMargin - 10) + "px"); running=false; }); I'm seeing the correct value for what I want in the log ie the animation thinks its finished... but nothing is changing on my div. Does anyone

How to create fireworks particle graphics effect on android

我怕爱的太早我们不能终老 提交于 2019-11-28 04:33:53
Anybody has any idea how to make a fireworks effect by drawing on canvas? There is one nice example in wireworks live wallpaper (free app). There, many points move and leave trails in a star like explosion and gradually disappear. I think that there is some kind of motion blur on each point moving, which I am not sure how to create. Any ideas or links to relevant examples are welcome. That's a very abstract (and interesting) question but far too complex to answer in details. What you're really looking for is probably a sort of a modified particle system. A particle system is basically an

Does jQuery's fadeIn() and fadeOut() not work with IE 8?

☆樱花仙子☆ 提交于 2019-11-28 04:16:42
问题 I have a page that fadeIn and fadeOut an inline element and jQuery doesn't work. And then when I change the Developer Tools to use Browser Mode of IE 7, then the fadeIn() and fadeOut() effect is showing. 回答1: IE has an implementation detail known as "hasLayout" that, sadly, often leaks past the API abstraction and must be dealt with head-on... This is the battle you face today: inline elements generally won't have "layout" and thus won't work with "filters"... which are what jQuery uses to

JQuery-Mobile collapsible slideDown effect

为君一笑 提交于 2019-11-28 03:22:46
问题 I want to add a slideDown or slideUp effect to a div with data-role='collapsible' , so it will not open at once but gradually. I have tried this: $('#my-collapsible').live('expand', function() { $('#my-collapsible .ui-collapsible-content').slideDown(2000); }); $('#my-collapsible').live('collapse', function() { $('#my-collapsible .ui-collapsible-content').slideUp(2000); }); But it still opens and closes without delay. Anyone knows how should I call those slideDown and slideUp methods? 回答1: