Class ExifOrientationUtilities
Contains various helper methods for working with EXIF orientation values.
Inherited Members
Namespace: SixLabors.ImageSharp.Web
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public static class ExifOrientationUtilities
Methods
| Improve this Doc View SourceIsExifOrientationRotated(UInt16)
Returns a value indicating whether an EXIF orientation is rotated (not flipped).
Declaration
public static bool IsExifOrientationRotated(ushort orientation)
Parameters
Type | Name | Description |
---|---|---|
UInt16 | orientation | The EXIF orientation. |
Returns
Type | Description |
---|---|
Boolean | true if the orientation value indicates rotation; otherwise false. |
Transform(AnchorPositionMode, UInt16)
Transforms the specified anchor value depending on the specified orientation
.
Declaration
public static AnchorPositionMode Transform(AnchorPositionMode anchor, ushort orientation)
Parameters
Type | Name | Description |
---|---|---|
AnchorPositionMode | anchor | The input anchor value. |
UInt16 | orientation | The EXIF orientation. |
Returns
Type | Description |
---|---|
AnchorPositionMode | The transformed anchor. |
Transform(Size, UInt16)
Transforms the specified size value depending on the specified orientation
.
Declaration
public static Size Transform(Size size, ushort orientation)
Parameters
Type | Name | Description |
---|---|---|
Size | size | The input size value. |
UInt16 | orientation | The EXIF orientation. |
Returns
Type | Description |
---|---|
Size | The transformed size. |
Transform(Vector2, Vector2, Vector2, UInt16)
Transforms the specified vector value depending on the specified orientation
.
Declaration
public static Vector2 Transform(Vector2 position, Vector2 min, Vector2 max, ushort orientation)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | position | The input vector value. |
Vector2 | min | The minimum bounds of the area of interest. |
Vector2 | max | The maximum bounds of the area of interest. |
UInt16 | orientation | The EXIF orientation. |
Returns
Type | Description |
---|---|
Vector2 | The transformed vector. |