Neodynamic ImageDraw for ASP.NET
Fade
Represented by Neodynamic.WebControls.ImageDraw.Fade class.

This action performs fading effect on an Element. Fading action/effect gradually fades a given area/region of the target Element into the background. ImageDraw implements a very flexible and powerful Fading effect allowing you to define an area/region represented by a shape on which the fade effect takes place. Given that, you can get fading effects like rectangles, ovals, stars of any number of points, polygons of any number of sides and much more. You can specify whether the area/region for fading should fit the target element's size or be of a fixed size. You can control the area/region location as well if needed.
The fading effect is determined based on how the shape's fill is set up. For example, if you set up the shape's fill to be a solid color, then no fading effect will be produced. However, if you set up the shape's fill to be a gradient colors and one of those colors is transparent or contains some transparency (through out Alpha color channel), then a fading effect will take place.

In the following example we have an ImageElement on the Canvas and a Fade action is applied on the ImageElement.


ImageElement before the action is applied.

ImageElement with Rectangle fading.

ImageElement with Oval (with path gradient fill) fading.


Syntax sample