'...
'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 AdjustSaturation class
Dim adjSaturation As New Neodynamic.WebControls.ImageDraw.AdjustSaturation()
'Set the saturation level
adjSaturation.Level = 75
'Apply the action on the ImageElement
imgElem.Actions.Add(adjSaturation)
'Add the ImageElement to the Elements collection of the ImageDraw control
Me.ImageDraw1.Elements.Add(imgElem)
'Add the TextElement to the Elements collection of the ImageDraw control
'...
//...
//Create an instance of ImageElement class
Neodynamic.WebControls.ImageDraw.ImageElement imgElem = Neodynamic.WebControls.ImageDraw.ImageElement.FromUrl("~/images/night.jpg");
//Create an instance of AdjustSaturation class
Neodynamic.WebControls.ImageDraw.AdjustSaturation adjSaturation = new Neodynamic.WebControls.ImageDraw.AdjustSaturation();
//Set the saturation level
adjSaturation.Level = 75;
//Apply the action on the ImageElement
imgElem.Actions.Add(adjSaturation);
//Add the ImageElement to the Elements collection of the ImageDraw controlthis.ImageDraw1.Elements.Add(imgElem);
//Add the TextElement to the Elements collection of the ImageDraw control
//...
This action adjusts the saturation level of an Element. Saturation is adjusted by specifying a level value which ranges from -100 (dark) to 100 (light).
In the following example we have an ImageElement and a TextElement on the Canvas and an AdjustSaturation action is applied on the ImageElement only.