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
| Edit this page View SourceIsExifOrientationRotated(ushort)
Returns a value indicating whether an EXIF orientation is rotated (not flipped).
Declaration
public static bool IsExifOrientationRotated(ushort orientation)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | orientation | The EXIF orientation. |
Returns
| Type | Description |
|---|---|
| bool | true if the orientation value indicates rotation; otherwise false. |
Transform(AnchorPositionMode, ushort)
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. |
| ushort | orientation | The EXIF orientation. |
Returns
| Type | Description |
|---|---|
| AnchorPositionMode | The transformed anchor. |
Transform(Size, ushort)
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. |
| ushort | orientation | The EXIF orientation. |
Returns
| Type | Description |
|---|---|
| Size | The transformed size. |
Transform(Vector2, Vector2, Vector2, ushort)
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. |
| ushort | orientation | The EXIF orientation. |
Returns
| Type | Description |
|---|---|
| Vector2 | The transformed vector. |