'...
'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 Flip class
Dim flip As New Neodynamic.WebControls.ImageDraw.Flip()
flip.Type = Neodynamic.WebControls.ImageDraw.FlipType.Horizontal
'Apply the action on the ImageElement
imgElem.Actions.Add(flip)
'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 Flip class
Neodynamic.WebControls.ImageDraw.Flip flip = new Neodynamic.WebControls.ImageDraw.Flip();
flip.Type = Neodynamic.WebControls.ImageDraw.FlipType.Horizontal;
//Apply the action on the ImageElement
imgElem.Actions.Add(flip);
//Add the ImageElement to the Elements collection of the ImageDraw controlthis.ImageDraw1.Elements.Add(imgElem);
//...
This action flips an Element across its vertical or horizontal axis.
In the following example we have an ImageElement on the Canvas and a Flip action is applied on the ImageElement in both directions, horizontal and vertical.
ImageElement before the action is applied.
ImageElement with Flip action applied on it. Horizontal flipping.
ImageElement with Flip action applied on it. Vertical flipping.