Class ExifOrientationUtilities
- Namespace
- SixLabors.ImageSharp.Web
- Assembly
- SixLabors.ImageSharp.Web.dll
Contains various helper methods for working with EXIF orientation values.
public static class ExifOrientationUtilities
- Inheritance
-
ExifOrientationUtilities
- Inherited Members
Methods
IsExifOrientationRotated(ushort)
Returns a value indicating whether an EXIF orientation is rotated (not flipped).
public static bool IsExifOrientationRotated(ushort orientation)
Parameters
orientationushortThe EXIF orientation.
Returns
Transform(AnchorPositionMode, ushort)
Transforms the specified anchor value depending on the specified orientation.
public static AnchorPositionMode Transform(AnchorPositionMode anchor, ushort orientation)
Parameters
anchorAnchorPositionModeThe input anchor value.
orientationushortThe EXIF orientation.
Returns
- AnchorPositionMode
The transformed anchor.
Transform(Size, ushort)
Transforms the specified size value depending on the specified orientation.
public static Size Transform(Size size, ushort orientation)
Parameters
Returns
- Size
The transformed size.
Transform(Vector2, Vector2, Vector2, ushort)
Transforms the specified vector value depending on the specified orientation.
public static Vector2 Transform(Vector2 position, Vector2 min, Vector2 max, ushort orientation)
Parameters
positionVector2The input vector value.
minVector2The minimum bounds of the area of interest.
maxVector2The maximum bounds of the area of interest.
orientationushortThe EXIF orientation.
Returns
- Vector2
The transformed vector.