Paints a solid silhouette of the selected visual object, offset in the specified direction. This creates the illusion that the visual object is floating above the background and is casting a shadow.
Note To use this transform, you need to have Microsoft® Internet Explorer 5, Microsoft Windows® 98 Second Edition, or Windows 2000 installed.
Transform Specifications
The following table contains the information you need in order to use this transform in C++ and script.
Class identifier (CLSID) | CLSID_DropShadow |
---|---|
Globally unique identifier (GUID) | ADC6CB86-424C-11D2-952A-00C04FA34F05 |
Programmatic identifier (ProgId) | DXImageTransform.Microsoft.DropShadow |
Category identifier (CATID) | CATID_DXImageTransform |
Custom interfaces | IDropShadow |
Supported interfaces | None |
Inputs | One required of type IDXSurface. |
Output | IDXSurface |
Custom Properties
The following table lists the custom properties that control the transform output.
Property | Type | Default | Description |
---|---|---|---|
Color | long | 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. |
offX | int | 5 | The number of pixels by which 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 | int | 5 | The number of pixels by which 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 | Boolean | TRUE | If TRUE, the transform creates a drop shadow of any nontransparent pixel of the image. If FALSE, it creates a drop shadow of any transparent pixel of the image. |
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.