shadow

How can I create a drop shadow like floating effect around a canvas component in flex?

I want create a drop shadow around the canvas component in flex. Technically speaking it will not be a shadow, as I want it to wrap around the component giving the component a floating look. I may be able to do it with glow, but can anyone drop an line or two who has already done it? Thanks in advance. ...

Qt: how to make a shadow to main window widget?

How to make a shadow to main window widget on windows using Qt? ...

How to imitate shadow around the thumbnails by StretchDIBits?

I am now writing a image viewer, It is used for view thumbnails. As it is ugly, I decide to draw shadow round thumbnail. There is background color. I am using StretchDIBits to draw a shadow image at the location of thumbnail. However it is really annoying that it cover the background color... When the background is white, it looks perfe...

Text-shadow for position: static

Is there any way to do text shadow for Position static with somewhat decent crossbrowser support? The CSS3 text-shadow is ultimately what I'm after, but of course only Safari/Opera/(not yet released FF3.1) out of the major browsers support it. All javascript/css techniques I've seen forces the text into position:absolute, which will no...

What's wrong with my soft-shadow code?

I'm trying to write a simple raytracer as a hobby project and it's all working fine now, except I can't get soft-shadows to work at all. My idea of soft-shadows is that the lightsource is considered to have a location and a radius. To do a shadow test on this light I take the point where the primary ray hit an object in the scene and cas...

Drop shadow on a div container?

I have a searchbox with auto-suggest that pops a div up underneath it with multiple search string suggestions (like google). Is it possible to have drop shadow on the auto-suggest box with CSS or will I need a script of some sort? I tried a background image but the number of suggests can vary from 1 to 10 or 15. I'd prefer something t...

Calculating how visible an object is in a 3D-scene for use in game logic/AI

I am starting a game project which will allow characters to hide in dark areas. Hiding in a dark corner should make it harder for other characters to see you. What I need is a way to calculate how the lighting conditions are where the character is located. The ideal would be to have a double getLightFactor(GameCharacter observer, Gam...

Drawing a shadow below a UIScrollView (that scrolls a UIView)

My setup is a UIScrollView in the center of the screen (on the iPhone - like 300x400 positioned in the center) that contains a UIView of the same width, so it scrolls it vertically. In this UIView i draw custom subviews with labels etc (it's a scoreboard with various colors). What i'd like to have is some shadow below my UIScrollView, s...

Remove UIWebView Shadow?

Does anyone know if its possible to remove the shadow that is placed on the UIWebView window? Example: http://uploadingit.com/files/1173105_olub5/shadow.png If its possible how do you do it? Thanks ...

Flash AS3 drop shadows don't show up when changing height & width

In as3 I'm creating a drop shadow, which works fine. But when I change the height or width of the object (mcWhiteBorder) the drop shadow does not appear at all. Any ideas? var mcWhiteBorder:whiteBorder = new whiteBorder(); var dropShadow:DropShadowFilter = new DropShadowFilter(); dropShadow.distance = 1; dropShadow.alpha = .2; dropShado...

How Do I Create Cheap Shadows In OpenGL?

I have two models, A and B, and one light, L. I would like model A to cast a shadow on model B. I don't want to bother with shadow volumes or proper shadows for the moment, just a simple circle shadow will suffice. The effect is that model A is treated as a sphere for shadow casting purposes. Here is how I envision the algorithm: Fo...

Making the shadow from a ScatterViewItem a different shape

I am developing a program for Surface using Expression Blend and Visual Studio. I have a custom user control with an ellipse and a label in a grid. This will need to be placed in a scatterViewItem. My problem is that the scatterviewitem will cast a rectangle shaped shadow under the ellipse shaped content. I can disable the shadow comple...

Complex CSS Text-Shadow and cross browser compatibility

<html> <body> <style type='text/css'> body { font: 100% myriad, arial, sans-serif; font-size: 12px; color:white; font-weight:bold; } .shadowtext { text-shadow:-0.1em 0 0.1em #626262, 0.1em 0 0.1em #626262, 0 -0.1em 0.1em #626262, 0 0.1em 0.1em #626262; } .shadowtext_text { ...

Draw a shadow behind UIWebView

I know similar questions have been asked before, so don't get snarky and link to previous answers. The reason I am repeating this is that none of the answers have worked. I have a UIWebView, and I want to draw a pretty drop-shadow behind it. I have tried subclassing and using some CoreGraphics goodness in drawRect:, but to no avail. Can...

Drop Shadow on UITextField text

how is it possible to add a shadow to the text which is in a UITextField? ...

Why can't I set my button's shadow colour?

I'm trying to set the shadow colour on a UIButton, but all I seem to be able to get is a mid grey. UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; button.frame = CGRectMake(20, 20, 200, 100); [button setTitle:@"a" forState:UIControlStateNormal]; [button addTarget:self action:@selector(buttonPressed:) for...

CSS3 box-shadow, all sides but one?

I've got a tabbed navigation bar where I'd like the open tab to have a shadow to set it apart from the other tabs. I'd also like the whole tab section to have a single shadow (see bottom horizontal line) going up, shading the bottom of all tabs except for the open one. I'm going to use CSS3's box-shadow property to do it, but I can't f...

Shadow or Border around a scrollview iphone

Hi there, i would like to draw a border / shadow around a uiscrollview, i know that i could get there with an additional view or scrollview but dont like the handling an drawbacks but i heard that there should be a possibility to dirctly draw a border to a scrollview and that is what i would prefer. I am quit new to iphone dev so if th...

Why would a TextBlock with DropShadowEffect show a solid black background on one XP machine?

We have a WPF application in which we have the following XAML: <TextBlock x:Name="HeaderRightSubtitle" HorizontalAlignment="Left" VerticalAlignment="top" FontSize="10" Foreground="#FFFFFF"> <TextBlock.Effect> <DropShadowEffect Color="#FFCACACA" ShadowDepth="1" Opac...

iPhone UILabel text soft shadow

I know soft shadows are not supported by the UILabel our of the box, on the iPhone. So what would be the best way to implement my own one? EDIT: Obviously I will subclass the UILabel and draw in the -drawRect: My question is, how do I get the contents of the label as graphics and draw around them, blur them etc... ...