'...
'Create an instance of ImageElement class
Dim imgElem As Neodynamic.WebControls.ImageDraw.ImageElement
imgElem = Neodynamic.WebControls.ImageDraw.ImageElement.FromUrl("~/images/night.jpg")
'Create an instance of GaussianBlur class
Dim gBlur As New Neodynamic.WebControls.ImageDraw.GaussianBlur()
gBlur.Radius = 5
'Apply the action on the ImageElement
imgElem.Actions.Add(view)
'Add the ImageElement to the Elements collection of the ImageDraw control
Me.ImageDraw1.Elements.Add(imgElem)
'...
//...
//Create an instance of ImageElement class
Neodynamic.WebControls.ImageDraw.ImageElement imgElem = Neodynamic.WebControls.ImageDraw.ImageElement.FromUrl("~/images/night.jpg");
//Create an instance of GaussianBlur class
Neodynamic.WebControls.ImageDraw.GaussianBlur gBlur = new Neodynamic.WebControls.ImageDraw.GaussianBlur();
gBlur.Radius = 5;
//Apply the action on the ImageElement
imgElem.Actions.Add(view);
//Add the ImageElement to the Elements collection of the ImageDraw controlthis.ImageDraw1.Elements.Add(imgElem);
//...
This action softens the look of an Element. Gaussian Blur applies a weighted average of blur to each pixel producing a hazy effect. The only property for setting up when working with Gaussian Blur is called Radius which is the strength of the blur effect.
In the following example we have an ImageElement on the Canvas and a GaussianBlur action is applied on the ImageElement.
ImageElement before the action is applied.
ImageElement with GaussianBlur action applied on it. Radius = 5.