'...
'Create an instance of ImageElement class
Dim imgElem As Neodynamic.SDK.ImageElement
imgElem = Neodynamic.SDK.ImageElement.FromUrl("~/images/night.jpg")
'Create an instance of AdjustSaturation class
Dim adjSaturation As New Neodynamic.SDK.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.SDK.ImageElement imgElem = Neodynamic.SDK.ImageElement.FromUrl("~/images/night.jpg");
//Create an instance of AdjustSaturation class
Neodynamic.SDK.AdjustSaturation adjSaturation = new Neodynamic.SDK.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.