'...
'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 PerspectiveView class
Dim view As New Neodynamic.WebControls.ImageDraw.PerspectiveView()
view.Angle = 25
view.Orientation = Neodynamic.WebControls.ImageDraw.PerspectiveOrientation.LeftToRight
'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 PerspectiveView class
Neodynamic.WebControls.ImageDraw.PerspectiveView view = new Neodynamic.WebControls.ImageDraw.PerspectiveView();
view.Angle = 25;
view.Orientation = Neodynamic.WebControls.ImageDraw.PerspectiveOrientation.LeftToRight;
//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 simulates a perspective view of an Element.
In the following example we have an ImageElement on the Canvas and a PerspectiveView action is applied on the ImageElement. You can specify an orientation for the perspective view which values can be "Left Ro Right", "Right to Left", "Top to Bottom", and "Bottom to Top"
ImageElement before the action is applied.
ImageElement with PerspectiveView action applied on it.