Neodynamic ImageDraw SDK for .NET
FocalGrayscale
Represented by Neodynamic.SDK.FocalGrayscale class.

This action creates grayscale element with a colored focal point represented by a shape. ImageDraw implements a very flexible and powerful Focal Grayscale effect allowing you to define an area/region represented by a shape on which the FocalGrayscale effect takes place. Given that, you can get focal grayscale 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 focus should fit the target element's size or be of a fixed size. You can control the area/region location as well. In addition, reversing the effect is also supported.
The smoothing 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 smoothing 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 smoothing effect will take place.

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


ImageElement before the action is applied.

ImageElement with Oval focal point.


Syntax sample