View Source Vix.Vips.Interpolate (vix v0.31.1)

Make interpolators for operators like affine and mapim.

Summary

Types

t()

Represents an instance of VipsInterpolate

Functions

Make a new interpolator by name.

Make a new interpolator by name.

Types

@type t() :: %Vix.Vips.Interpolate{ref: reference()}

Represents an instance of VipsInterpolate

Functions

@spec new(String.t()) :: {:ok, t()} | {:error, term()}

Make a new interpolator by name.

Make a new interpolator from the libvips class nickname. For example:

{:ok, interpolate} = Interpolate.new("bilindear")

You can get a list of all supported interpolators from the command-line with:

$ vips -l interpolate

See for example affine.

@spec new!(String.t()) :: t()

Make a new interpolator by name.

Make a new interpolator from the libvips class nickname. For example:

interpolate = Interpolate.new!("bilindear")

You can get a list of all supported interpolators from the command-line with:

$ vips -l interpolate

See for example affine.