Transformation

The image editor control is capable of performing the image transformations such as rotation and flip.

Rotation

You can use the Rotate method of the image editor to rotate an image. For each rotation, image will be rotated to 90 degrees towards clockwise direction.

NOTE

Angle cannot be specified in code to alter the rotation angle of an image.

editor.Rotate();

Flip

The image editor control is capable of showing the mirror image. The Flip method flips the image horizontally or vertically based on the FlipDirection specified as argument of the flip method.

NOTE

The default flip direction is horizontal.

editor.Flip(FlipDirection.Horizontal);

SfImageEditor