Search Results for

    Show / Hide Table of Contents

    Class CubicInterpolator

    Implements Cubic interpolation.

    Inheritance
    System.Object
    CubicInterpolator
    Implements
    IInterpolator
    Namespace: PhotoSauce.MagicScaler.Interpolators
    Assembly: PhotoSauce.MagicScaler.dll
    Syntax
    public sealed class CubicInterpolator : Object, IInterpolator

    Constructors

    CubicInterpolator(Double, Double)

    Constructs a new CubicInterpolator with the specified b and c values.

    Declaration
    public CubicInterpolator(double b = 0, double c = 0.5)
    Parameters
    Type Name Description
    System.Double b

    Controls the smoothness of the filter. Larger values smooth/blur more. Values > 1.0 are not recommended.

    System.Double c

    Controls the sharpness of the filter. Larger values sharpen more. Values > 1.0 are not recommended.

    Properties

    Support

    The maximum distance from the origin for which the GetValue(Double) method returns a non-zero value.

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

    Methods

    GetValue(Double)

    Calculates the value at a given distance from the origin.

    Declaration
    public double GetValue(double d)
    Parameters
    Type Name Description
    System.Double d

    The absolute value of the distance from the origin.

    Returns
    Type Description
    System.Double

    The value at the specified distance.

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string that represents the current object.

    Implements

    IInterpolator
    In This Article
    Back to top Copyright © 2022 Clinton Ingram
    Generated with DocFX