(name)
return Interpolate(vi)
Make a new interpolator by name.

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

            inter = pyvips.Interpolator.new('bicubic')

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

            $ vips -l interpolate

        See for example :meth:`.affine`.
Make a new interpolator by name.
Make a new interpolator by name .
def new(name):
        """Make a new interpolator by name.

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

            inter = pyvips.Interpolator.new('bicubic')

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

            $ vips -l interpolate

        See for example :meth:`.affine`.

        """

        # logger.debug('VipsInterpolate.new: name = %s', name)

        vi = vips_lib.vips_interpolate_new(_to_bytes(name))
        if vi == ffi.NULL:
            raise Error('no such interpolator {0}'.format(name))

        return Interpolate(vi)
def new ( name ) : # logger.debug('VipsInterpolate.new: name = %s', name) vi = vips_lib . vips_interpolate_new ( _to_bytes ( name ) ) if vi == ffi . NULL : raise Error ( 'no such interpolator {0}' . format ( name ) ) return Interpolate ( vi )