
    Dh"                     T    d dl Z d dl mZmZmZmZ  G d de j
                        ZdgZy)    N)ffivips_libError	_to_bytesc                   2     e Zd ZdZ fdZed        Z xZS )Interpolatez<Make interpolators for operators like :meth:`.affine`.

    c                 ,    t         t        |   |       y )N)superr   __init__)selfpointer	__class__s     u/var/www/fastuser/data/www/generator.snapmosaic.io/flask_app/venv/lib/python3.12/site-packages/pyvips/vinterpolate.pyr   zInterpolate.__init__   s    k4)'2    c                     t        j                  t        |             }|t        j                  k(  rt        d|        t        |      S )a_  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`.

        zno such interpolator )r   vips_interpolate_newr   r   NULLr   r   )namevis     r   newzInterpolate.new   s@    & **9T?;>/v6772r   )__name__
__module____qualname____doc__r   staticmethodr   __classcell__)r   s   @r   r   r      s!    3  r   r   )pyvipsr   r   r   r   
VipsObjectr   __all__ r   r   <module>r!      s*     2 2 &##  F /r   