'...
'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 MuseumMatteFrame class
Dim fxMuseumMatte As New Neodynamic.WebControls.ImageDraw.MuseumMatteFrame()
fxMuseumMatte.InnerBorderFill.BackgroundColor = Color.FromArgb(240, 234, 228)
fxMuseumMatte.OuterBorderFill.BackgroundColor = Color.FromArgb(26, 14, 3)
'Apply the action on the ImageElement
imgElem.Actions.Add(fxMuseumMatte)
'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 MuseumMatteFrame class
Neodynamic.WebControls.ImageDraw.MuseumMatteFrame fxMuseumMatte = new Neodynamic.WebControls.ImageDraw.MuseumMatteFrame();
fxMuseumMatte.InnerBorderFill.BackgroundColor = Color.FromArgb(240, 234, 228);
fxMuseumMatte.OuterBorderFill.BackgroundColor = Color.FromArgb(26, 14, 3);
//Apply the action on the ImageElement
imgElem.Actions.Add(fxMuseumMatte);
//Add the ImageElement to the Elements collection of the ImageDraw controlthis.ImageDraw1.Elements.Add(imgElem);
//...
This action adds shadowed matte frame to an Element. ImageDraw provides a flexible Museum Matte Frame effect allowing you to control the outside and inside border thikness and fill as well as shadow colors.
In the following example we have an ImageElement on the Canvas and a MuseumMatteFrame action is applied on the ImageElement.
ImageElement before the action is applied.
ImageElement with MuseumMatteFrame action applied on it.