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