Represented by Neodynamic.WebControls.ImageDraw.DropShadow class.
This action adds drop shadows to an Element. ImageDraw makes it easy to apply drop shadows to any Element allowing you to specify the following shadow settings:
DropShadow
- Angle: to set the direction of the shadow and to simulate the angle of the light shining on the object. It is measured counterclockwise from the x-axis.
- Color: to set the color of the shadow.
- Distance: to set the distance of the shadow from the Element.
- Opacity: to set the percentage of transparency in the shadow.
- Softness: to set the sharpness of the shadow.
Examples
1. In the first example we have two ImageElement objects on the Canvas anda simple DropShadow action is applied on it.
1. In the first example we have two ImageElement objects on the Canvas anda simple DropShadow action is applied on it.
ImageElement before the action is applied. |
ImageElement with DropShadow action applied on it. |
Syntax sample
2. In the following example we have an ImageElement and a TextElement on the Canvas and a DropShadow action is applied on the TextElement only.
TextElement before the action is applied. |
TextElement with DropShadow action applied on it. |
Syntax sample
3. In the following example we have an ImageElement wrapping an "irregular" image on the Canvas and a DropShadow action is applied on the ImageElement. Notice how the image boundaries are maintained on the shadow.
ImageElement before the action is applied. |
ImageElement with DropShadow action applied on it. |
Syntax sample
Neodynamic ImageDraw for ASP.NET Documentation
Copyright © 2003 - 2007 Neodynamic - All rights reserved.
Copyright © 2003 - 2007 Neodynamic - All rights reserved.