DEXTUpload.NET Professional
menu toggleReferences > DEXTUpload.NET > RotationMethod

DEXTUpload.NET
Enumeration RotationMethod

The minimum supported version
5.0.0.0
The minimum support environment
.NET Framework 4.0
Explanation

The "RotationMethod" enumeration is that indicates how to rotate the original image in 90-degree increments.

There is also a method of inputting the angles directly, but if the image is rotated in 90-degree increments, it is also possible to use a member of the "RotationMethod".

To rotate a image is to use the "Rotate" method of the "DEXTUpload.NET.ImageProc" class.

var target = new FileInfo("source.jpg");
var rotated = ImageProc.Rotate(source, RotationMethod.Auto);
Type
public enum RotationMethod
Members

Auto

  • Gets or sets whether or not to rotate relative to the value of the "DEXTUpload.NET.ImageMetaDataPropertyTagIds.Orientation" tag.

    In many cases, photos taken on a mobile phone is rotated. This member is used to rotate such a photo to correct position. However, if no Orientation information of the photographed direction in the image, the automatic rotation function does not work properly.

CW90

  • 90 degrees clockwise.

CCW90

  • 90 degrees counterclockwise.

CW180

  • 180 degrees clockwise.

CCW180

  • 180 degrees counterclockwise.