Paints a solid silhouette of the selected visual object, offset in the specified direction. This creates the illusion that the object is floating above the background and casting a shadow.
Note To use this transform, you need to have Microsoft® Internet Explorer 5, the Microsoft Windows® 98 OEM Service Release (OSR), or Windows 2000 installed.
Transform Specifications
The following table contains the information you need to use this transform in script.
Globally unique identifier (GUID) | ADC6CB86-424C-11D2-952A-00C04FA34F05 |
---|---|
Programmatic identifier (ProgId) | DXImageTransform.Microsoft.DropShadow |
Inputs | One input image is required. |
Transform type | Filter |
Transform Properties
The following table lists the transform properties that control the appearance of the output.
Property name | Default | Description |
---|---|---|
color | 0xFF404040 | The color to use for the drop shadow effect. The color is expressed in 0xAARRGGBB format, where AA is the alpha hexadecimal value, RR is the red hexadecimal value, GG is the green hexadecimal value, and BB is the blue hexadecimal value. This value can also be a string which uses the standard HTML color formats "#RRGGBB" or "#AARRGGBB". |
offX | 5 | The number of pixels the shadow is offset from the visual object, along the x-axis. Positive integers move the shadow to the right, and negative integers move the shadow to the left. |
offY | 5 | The number of pixels the shadow is offset from the visual object, along the y-axis. Positive integers move the shadow down, and negative integers move the shadow up. |
positive | TRUE | If TRUE, the transform creates a drop shadow of any nontransparent pixel of the image. If FALSE, the transform creates drop shadows for any transparent pixel of the image. |
Remarks
If you have a transparent object but still want the usual shadow effect, set positive to zero. The transparent object will then have a drop shadow outside the transparent region, rather than inside the transparent region.