Search Results for

    Show / Hide Table of Contents

    Class InterpolationSettings

    Defines settings for resampling interpolation.

    Inheritance
    System.Object
    InterpolationSettings
    Namespace: PhotoSauce.MagicScaler
    Assembly: PhotoSauce.MagicScaler.dll
    Syntax
    public sealed class InterpolationSettings : ValueType

    Constructors

    InterpolationSettings(IInterpolator)

    Constructs a new InterpolationSettings instance with the specified values.

    Declaration
    public InterpolationSettings(IInterpolator weighting)
    Parameters
    Type Name Description
    IInterpolator weighting

    The weighting function implementation.

    InterpolationSettings(IInterpolator, Double)

    Constructs a new InterpolationSettings instance with the specified values.

    Declaration
    public InterpolationSettings(IInterpolator weighting, double blur)
    Parameters
    Type Name Description
    IInterpolator weighting

    The weighting function implementation.

    System.Double blur

    The blur factor for the weighting function.

    Fields

    Average

    A predefined BoxInterpolator.

    Declaration
    public static readonly InterpolationSettings Average
    Field Value
    Type Description
    InterpolationSettings

    CatmullRom

    A predefined Catmull-Rom (b=0, c=1/2) CubicInterpolator.

    Declaration
    public static readonly InterpolationSettings CatmullRom
    Field Value
    Type Description
    InterpolationSettings

    Cubic

    A predefined Cardinal (b=0, c=1) CubicInterpolator. Also known as Bicubic in some software.

    Declaration
    public static readonly InterpolationSettings Cubic
    Field Value
    Type Description
    InterpolationSettings

    CubicSmoother

    A predefined smoothing CubicInterpolator. Similar to Photoshop's "Bicubic Smoother".

    Declaration
    public static readonly InterpolationSettings CubicSmoother
    Field Value
    Type Description
    InterpolationSettings

    Hermite

    A predefined Hermite (b=0, c=0) CubicInterpolator.

    Declaration
    public static readonly InterpolationSettings Hermite
    Field Value
    Type Description
    InterpolationSettings

    Lanczos

    A predefined 3-lobed LanczosInterpolator.

    Declaration
    public static readonly InterpolationSettings Lanczos
    Field Value
    Type Description
    InterpolationSettings

    Linear

    A predefined LinearInterpolator. Also known as Bilinear in some software.

    Declaration
    public static readonly InterpolationSettings Linear
    Field Value
    Type Description
    InterpolationSettings

    Mitchell

    A predefined Mitchell-Netravali (b=1/3, c=1/3) Cubic interpolator.

    Declaration
    public static readonly InterpolationSettings Mitchell
    Field Value
    Type Description
    InterpolationSettings

    NearestNeighbor

    A predefined PointInterpolator.

    Declaration
    public static readonly InterpolationSettings NearestNeighbor
    Field Value
    Type Description
    InterpolationSettings

    Quadratic

    A predefined QuadraticInterpolator with properties similar to a Catmull-Rom Cubic.

    Declaration
    public static readonly InterpolationSettings Quadratic
    Field Value
    Type Description
    InterpolationSettings

    Spline36

    A predefined Spline36Interpolator.

    Declaration
    public static readonly InterpolationSettings Spline36
    Field Value
    Type Description
    InterpolationSettings

    Properties

    Blur

    A blur value stretches or compresses the input window of an interpolation function. This value represents a fraction of the normal window size, with 1.0 being normal.

    Declaration
    public double Blur { get; }
    Property Value
    Type Description
    System.Double

    Supported values: 0.5 to 1.5. Values less than 1.0 can cause unpleasant artifacts.

    WeightingFunction

    An IInterpolator implementation that provides interpolated sample weights.

    Declaration
    public IInterpolator WeightingFunction { get; }
    Property Value
    Type Description
    IInterpolator
    In This Article
    Back to top Copyright © 2022 Clinton Ingram
    Generated with DocFX