'...
'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 Emboss class
Dim fxEmboss As New Neodynamic.WebControls.ImageDraw.Emboss()
fxEmboss.BumpHeight = 50
fxEmboss.LightAngle = 90
fxEmboss.LightElevation = 60
'Apply the action on the ImageElement
imgElem.Actions.Add(fxEmboss)
'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 Emboss class
Neodynamic.WebControls.ImageDraw.Emboss fxEmboss = new Neodynamic.WebControls.ImageDraw.Emboss();
fxEmboss.BumpHeight = 50;
fxEmboss.LightAngle = 90;
fxEmboss.LightElevation = 60;
//Apply the action on the ImageElement
imgElem.Actions.Add(fxEmboss);
//Add the ImageElement to the Elements collection of the ImageDraw controlthis.ImageDraw1.Elements.Add(imgElem);
//...
This action embosses an Element. ImageDraw provides a flexible Emboss effect allowing you to control the bump height and the light angle and elevation. You can also generate a colored relief instead of emboss effect.
In the following example we have an ImageElement on the Canvas and a Emboss action is applied on the ImageElement.