• 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 FormattedImage

    A class encapsulating an image with a particular file encoding.

    Inheritance
    object
    FormattedImage
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Web
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public sealed class FormattedImage : IDisposable

    Constructors

    | Edit this page View Source

    FormattedImage(Image, IImageFormat)

    Initializes a new instance of the FormattedImage class.

    Declaration
    public FormattedImage(Image image, IImageFormat format)
    Parameters
    Type Name Description
    Image image

    The image.

    IImageFormat format

    The format.

    Properties

    | Edit this page View Source

    Encoder

    Gets or sets the encoder.

    Declaration
    public IImageEncoder Encoder { get; set; }
    Property Value
    Type Description
    IImageEncoder
    | Edit this page View Source

    Format

    Gets or sets the format.

    Declaration
    public IImageFormat Format { get; set; }
    Property Value
    Type Description
    IImageFormat
    | Edit this page View Source

    Image

    Gets the decoded image.

    Declaration
    public Image Image { get; }
    Property Value
    Type Description
    Image

    Methods

    | Edit this page View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    | Edit this page View Source

    TryGetExifOrientation(out ushort)

    Gets the EXIF orientation metadata for the FormattedImage.

    Declaration
    public bool TryGetExifOrientation(out ushort value)
    Parameters
    Type Name Description
    ushort value

    When this method returns, contains the value parsed from decoded EXIF metadata; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized. Use ExifOrientationMode for comparison.

    Returns
    Type Description
    bool

    true if the FormattedImage contains EXIF orientation metadata for Orientation; otherwise, false.

    Implements

    IDisposable

    See Also

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