effects

Glass effects UIView

感情迁移 提交于 2019-12-04 17:07:11
I would like to know how it is possible to add a glass effect on a UIView I would like something like this effects on the gray translucent view you can see here : Thanks There's nothing like glass effect in UIView .All you can do is set the opacity of the view between 0 and 1.Also the view shown above has fine set of images which makes it seem like your "Glass Effect". Well If you what your UIView to be "shiny and elegant" , you can do it in two ways :- 1>You can simply have effects in images created with photoshop as it will decrease the overhead of doing the same with programming. 2>you can

How to produce Photoshop stroke effect?

我只是一个虾纸丫 提交于 2019-12-04 15:13:07
I'm looking for a way to programmatically recreate the following effect: Give an input image: input http://www.shiny.co.il/shooshx/ConeCarv/q_input.png I want to iteratively apply the "stroke" effect. The first step looks like this: step 1 http://www.shiny.co.il/shooshx/ConeCarv/q_step1.png The second step like this: alt text http://www.shiny.co.il/shooshx/ConeCarv/q_step2.png And so on. I assume this will involves some kind of edge detection and then tracing the edge somehow. Is there a known algorithm to do this in an efficient and robust way? VonC Basically, a custom algorithm would be,

Canvas versus SVG animations (effects[filters] and performance)

余生颓废 提交于 2019-12-04 13:13:16
I am developing an application that should run equally smoothly on a web browser (IE support completely optional) and on iPhones and have tested various libraries for days, including: jQuery SVG, CAKE (Canvas Animation Kit Experiment), Burst Engine, Processing.js and Raphael, and have yet to find the right one for this experiment. The input is optional - whether an SVG or a PNG rendered from the vector, the only two requirements for the animation library are to be able to animate (rotate) the image, and gradually apply a blur filter or a "trails"-like effect. Should I go for SVG or Canvas,

How to do this glow effect in WPF?

主宰稳场 提交于 2019-12-04 12:02:29
I have a ListView control that has cover images, posters similar to this app: I am trying to get the same blue glow mouseover effect. Any ideas on how to achieve this? Use the drop shadow and center it. Or You can just use the OuterGlowBitmapEffect 来源: https://stackoverflow.com/questions/5251062/how-to-do-this-glow-effect-in-wpf

OuterGlowBitmapEffect Alternative Without BitmapEffects

邮差的信 提交于 2019-12-04 05:05:06
What is a good alternative to OuterGlowBitmapEffect? Preferably one that can be used in a theme/style and one that can be used without BitmapEffects. The standard Effect library provides a DropShadowEffect that can be set up to look just like an OuterGlowBitmapEffect . The nice thing about this effect is that it is hardware-accelerated (unlike the bitmap effects, which are done in software). To make the DropShadowEffect look like a glow, simply set the ShadowDepth property to 0. Donno if is good or not, I never tested it, I just read about it, check it out here . 来源: https://stackoverflow.com

Set transparency of a DIV and its contents using jQuery

我与影子孤独终老i 提交于 2019-12-03 22:40:43
What is the best way to set the transparency of a HTML DIV element and its contents using jQuery? $('#my_element').css({ 'opacity' : 0.7 }); Do you want to actually set the opacity to each of the contained elements as well, or you just want it to 'appear' as if the child elements have the same opacity? As an example to my question, if you wanted something that sets an element, and each of the children elements, you could do something like this html <div id="my_element"> <div> lorem </div> <div> ipsum </div> </div> jquery $('#my_element').children(). css({ 'opacity' : 0.25 }). end(). css({

How do I darken all screen area and glow my opened window in WPF?

非 Y 不嫁゛ 提交于 2019-12-03 17:41:53
问题 In WPF, how do I darken all screen area when opening a new window? Also after the window is closed, how do I revert the temporary effect? 回答1: You may create a background transparent window like this: var darkwindow = new Window() { Background = Brushes.Black, Opacity = 0.4, AllowsTransparency = true, WindowStyle = WindowStyle.None, WindowState = WindowState.Maximized, Topmost = true }; darkwindow.Show(); MessageBox.Show("Hello"); darkwindow.Close(); and replace MessageBox.Show("Hello"); with

CSS “realistic” shadows (light source)

廉价感情. 提交于 2019-12-03 12:29:42
问题 Have a look at the picture below: The blue boxes are divs. Now what I am trying to do is to implement a sort of 2.5D functionality: I would like the grey shadows to be somewhat 3D-ish. At first I was thinking to assign to the box-shadow value the "Y" axis like this: "box-shadow: -5px -5px 10px" + value.tallness + "#888" but the result is the above image. Any idea on how to make the shadow on one side only, like there was a light source from somewhere? EXTRA - what about a moving "light source

HTML input onfocus & onblur?

做~自己de王妃 提交于 2019-12-03 12:28:07
问题 ok, today I'm making a helper HTML function. It looks like this: function Input($name,$type,$lable,$value= null){ if (isset($value)) { //if (this.value=='search') this.value = '' echo '<label for="'. $name .'">'. $lable .'</label><input type="'.$type.'" name="'. $name .'" id="'. $name .'" value="'.$value.'" onfocus="if (this.value==\''.$value.'\') this.value = \'\' "/>'; } if (!isset($value)) { echo '<label for="'. $name .'">'. $lable .'</label><input type="'.$type.'" name="'. $name .'" id="'

Shine effect automatically with css

。_饼干妹妹 提交于 2019-12-03 07:50:23
问题 I'm trying to do this shine effect operate automatically (without a: hover), every 5 seconds. http://jsfiddle.net/AntonTrollback/nqQc7/ .icon:after { content: ""; position: absolute; top: -110%; left: -210%; width: 200%; height: 200%; opacity: 0; transform: rotate(30deg); background: rgba(255, 255, 255, 0.13); background: linear-gradient( to right, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.13) 77%, rgba(255, 255, 255, 0.5) 92%, rgba(255, 255, 255, 0.0) 100% ); } .icon:hover:after {