• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • CaseHandlingUriBuilder
      • CaseHandlingUriBuilder.CaseHandling
      • CommandHandling
      • ExifOrientationUtilities
      • Format
      • FormatCommand
      • FormatUtilities
      • FormattedImage
      • HMACUtilities
      • ImageCacheMetadata
      • ImageMetadata
      • RequestAuthorizationUtilities
      • Resampler
      • ResamplerCommand
    • SixLabors.ImageSharp.Web.Caching
      • ICacheHash
      • ICacheKey
      • IImageCache
      • LegacyV1CacheKey
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
      • SHA256CacheHash
      • UriAbsoluteCacheKey
      • UriAbsoluteLowerInvariantCacheKey
      • UriRelativeCacheKey
      • UriRelativeLowerInvariantCacheKey
    • SixLabors.ImageSharp.Web.Commands
      • CommandCollection
      • CommandCollectionExtensions
      • CommandParser
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ArrayConverter<T>
      • ColorConverter
      • EnumConverter
      • ICommandConverter
      • ICommandConverter<T>
      • IntegralNumberConverter<T>
      • ListConverter<T>
      • SimpleCommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • AutoOrientWebProcessor
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • QualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • FileProviderImageProvider
      • IImageProvider
      • PhysicalFileSystemProvider
      • PhysicalFileSystemProviderOptions
      • ProcessingBehavior
      • WebRootImageProvider
    • SixLabors.ImageSharp.Web.Resolvers
      • FileProviderImageResolver
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>
    • SixLabors.ImageSharp.Web.TagHelpers
      • HmacTokenTagHelper
      • ImageTagHelper

    Class ExifOrientationUtilities

    Contains various helper methods for working with EXIF orientation values.

    Inheritance
    object
    ExifOrientationUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Web
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public static class ExifOrientationUtilities

    Methods

    | Edit this page View Source

    IsExifOrientationRotated(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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX