dropshadow

Android Drop Shadow on View

本小妞迷上赌 提交于 2019-11-27 06:14:24
I have done some extensive searching for code examples on this but cannot find anything. In particular, I am looking to add a shadow to a png drawable I am using in an ImageView. This png drawable is a rounded rect with transparent corners. Can somebody please provide a code example of how to add a decent drop shadow to a view either in code or XML? Josh You could use a combination of Bitmap.extractAlpha and a BlurMaskFilter to manually create a drop shadow for any image you need to display, but that would only work if your image is only loaded/displayed once in a while, since the process is

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

CSS Speech Bubble with Box Shadow

纵然是瞬间 提交于 2019-11-26 21:26:07
Creating a DIV that uses CSS to draw a triangle to the left. Trying to apply a uniform box-shadow to both parent and the pseudo element (see images) and code. Is this possible? Or am I better off using border-image for this? (Top: Before Shadow, Middle: CSS Box-Shadow, Bottom: Desired Result) .bubble{ height: 200px; width: 275px; opacity: 0; margin-top: 41px; float: right; background-color: #F2F2F2; -webkit-border-radius: 5px; -webkit-box-shadow: 0px 0px 6px #B2B2B2; } .bubble::after { height: 0px; width: 0px; content: "\00a0"; display: block; margin-left: -10px; margin-top: 28px; border-width

DropShadow for WPF Borderless Window

青春壹個敷衍的年華 提交于 2019-11-26 19:51:22
I have a WPF Window with WindowStyle set to none. Is there some way I can force this window to drop a shadow (like the one you get when WindowStyle is not none)? I don't want to set AllowTransparency to true, because it affects the performance. And I also don't want to disable hardware rendering (I read somewhere that transparency performs better with it disabled). I have written a little utility class that is able to do exactly what you want: drop a standard shadow over a borderless Window but having AllowsTransparency set to false . You just have to call the DropShadowToWindow(Window window)

Adding feDropShadow to a vertical line in SVG makes it disappear

試著忘記壹切 提交于 2019-11-26 12:33:14
问题 I have the following SVG document: <svg preserveAspectRatio=\"xMinYMin meet\" viewBox=\"0 0 21 484\" xmlns=\"http://www.w3.org/2000/svg\"> <defs> <filter id=\"dropShadow\"> <feDropShadow dx=\"4\" dy=\"0\" stdDeviation=\"4\"></feDropShadow> </filter> </defs> <g id=\"Artboard\" stroke-width=\"5\" stroke=\"#FF0000\" fill=\"#000000\" stroke-linecap=\"round\"> <path style=\"filter: url(#dropShadow)\" d=\"M7.5,8.5 L7.5,471.5\" id=\"path-1\"></path> </g> </svg> In Firefox, when I open the SVG

Android View shadow

余生长醉 提交于 2019-11-26 11:35:02
I searched around, and I could not find a proper way to do this. I want to have the following shadow effects on my views: To be honest, I do not know if this second one is done by applying shadow effect. Any ideas? Rick I know this question has already been answered but I want you to know that I found a drawable on Android Studio that is very similar to the pics you have in the question: Take a look at this: android:background="@drawable/abc_menu_dropdown_panel_holo_light" It looks like this: Hope it will be helpful Edit The option above is for the older versions of Android Studio so you may

JavaFX effect on background

[亡魂溺海] 提交于 2019-11-26 10:35:08
问题 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

CSS Speech Bubble with Box Shadow

白昼怎懂夜的黑 提交于 2019-11-26 07:56:41
问题 Creating a DIV that uses CSS to draw a triangle to the left. Trying to apply a uniform box-shadow to both parent and the pseudo element (see images) and code. Is this possible? Or am I better off using border-image for this? (Top: Before Shadow, Middle: CSS Box-Shadow, Bottom: Desired Result) .bubble{ height: 200px; width: 275px; opacity: 0; margin-top: 41px; float: right; background-color: #F2F2F2; -webkit-border-radius: 5px; -webkit-box-shadow: 0px 0px 6px #B2B2B2; } .bubble::after { height

Android View shadow

牧云@^-^@ 提交于 2019-11-26 02:28:22
问题 I searched around, and I could not find a proper way to do this. I want to have the following shadow effects on my views: To be honest, I do not know if this second one is done by applying shadow effect. Any ideas? 回答1: I know this question has already been answered but I want you to know that I found a drawable on Android Studio that is very similar to the pics you have in the question: Take a look at this: android:background="@drawable/abc_menu_dropdown_panel_holo_light" It looks like this:

Custom ImageView with drop shadow

落花浮王杯 提交于 2019-11-26 00:23:11
问题 Okay, I\'ve been reading and searching around, and am now banging my head against the wall trying to figure this out. Here\'s what I have so far: package com.pockdroid.sandbox; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.widget.ImageView; public class ShadowImageView extends ImageView { private Rect mRect; private Paint mPaint; public ShadowImageView(Context context)