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

    Contains reusable static instances of known resampling algorithms.

    Inheritance
    object
    Resampler
    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 Resampler

    Properties

    | Edit this page View Source

    Bicubic

    Gets the Bicubic sampler that implements the bicubic kernel algorithm W(x)

    Declaration
    public static ResamplerCommand Bicubic { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Box

    Gets the Box sampler that implements the box algorithm. Similar to nearest neighbor when upscaling. When downscaling the pixels will average, merging pixels together.

    Declaration
    public static ResamplerCommand Box { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    CatmullRom

    Gets the Catmull-Rom sampler, a well known standard Cubic Filter often used as a interpolation function

    Declaration
    public static ResamplerCommand CatmullRom { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Hermite

    Gets the Hermite sampler. A type of smoothed triangular interpolation filter that rounds off strong edges while preserving flat 'color levels' in the original image.

    Declaration
    public static ResamplerCommand Hermite { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Lanczos2

    Gets the Lanczos kernel sampler that implements smooth interpolation with a radius of 2 pixels. This algorithm provides sharpened results when compared to others when downsampling.

    Declaration
    public static ResamplerCommand Lanczos2 { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Lanczos3

    Gets the Lanczos kernel sampler that implements smooth interpolation with a radius of 3 pixels This algorithm provides sharpened results when compared to others when downsampling.

    Declaration
    public static ResamplerCommand Lanczos3 { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Lanczos5

    Gets the Lanczos kernel sampler that implements smooth interpolation with a radius of 5 pixels This algorithm provides sharpened results when compared to others when downsampling.

    Declaration
    public static ResamplerCommand Lanczos5 { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Lanczos8

    Gets the Lanczos kernel sampler that implements smooth interpolation with a radius of 8 pixels This algorithm provides sharpened results when compared to others when downsampling.

    Declaration
    public static ResamplerCommand Lanczos8 { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    MitchellNetravali

    Gets the Mitchell-Netravali sampler. This seperable cubic algorithm yields a very good equilibrium between detail preservation (sharpness) and smoothness.

    Declaration
    public static ResamplerCommand MitchellNetravali { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    NearestNeighbor

    Gets the Nearest-Neighbour sampler that implements the nearest neighbor algorithm. This uses a very fast, unscaled filter which will select the closest pixel to the new pixels position.

    Declaration
    public static ResamplerCommand NearestNeighbor { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Robidoux

    Gets the Robidoux sampler. This algorithm developed by Nicolas Robidoux providing a very good equilibrium between detail preservation (sharpness) and smoothness comparable to MitchellNetravali.

    Declaration
    public static ResamplerCommand Robidoux { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    RobidouxSharp

    Gets the Robidoux Sharp sampler. A sharpened form of the Robidoux sampler

    Declaration
    public static ResamplerCommand RobidouxSharp { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Spline

    Gets the Spline sampler. A separable cubic algorithm similar to MitchellNetravali but yielding smoother results.

    Declaration
    public static ResamplerCommand Spline { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Triangle

    Gets the Triangle sampler, otherwise known as Bilinear. This interpolation algorithm can be used where perfect image transformation with pixel matching is impossible, so that one can calculate and assign appropriate intensity values to pixels

    Declaration
    public static ResamplerCommand Triangle { get; }
    Property Value
    Type Description
    ResamplerCommand
    | Edit this page View Source

    Welch

    Gets the Welch sampler. A high speed algorithm that delivers very sharpened results.

    Declaration
    public static ResamplerCommand Welch { get; }
    Property Value
    Type Description
    ResamplerCommand
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX