This example demonstrates how to mirror your image vertically or horizontally. There are four FlipDirections available:
- FlipDirection.None (default) - the image is not flipped.
- FlipDirection.Vertical - the image is flipped vertically. The result after the operation is a mirrored image symmetrical to the original, with respect to the horizontal axis.
- FlipDirection.Horizontal - the image is flipped horizontally. The result after the operation is a mirrored image symmetrical to the original, with respect to the vertical axis.
- FlipDirection.Both - the image is flipped horizontally and vertically at the same time. The resulting image is a mirrored copy, symmetrical to the original, with respect to both the horizontal and vertical axes. The same effect is achieved by rotating the image 180 degrees.
The flip related tools can be easily shown on the RadImageEditor's ToolBar by creating ImageEditorTool(s) with the following command names:
CommandName="Flip" - This command opens the "Flip" tool dialog from which the image can be mirrored in the desired direction.
CommandName="FlipVertical" - This tool directly flips the image vertically. If the image is already flipped it will reverse the mirror operation.
CommandName="FlipHorizontal" - This command directly flips the image horizontally. If the image is already flipped it will reverse the flip effect.