Vips.Interpolate¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_object |
r |
Class Details¶
- class Vips.Interpolate(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
An abstract base class for the various interpolation functions.
Use
vips --list classesto see all the interpolators available.An interpolator consists of a function to perform the interpolation, plus some extra data fields which tells libvips how to call the function and what data it needs.
- classmethod bilinear_static()¶
- Returns:
a bilinear interpolator
- Return type:
A convenience function that returns a bilinear interpolator you don’t need to free.
- classmethod nearest_static()¶
- Returns:
a nearest-neighbour interpolator
- Return type:
A convenience function that returns a nearest-neighbour interpolator you don’t need to free.
- classmethod new(nickname)¶
- Parameters:
nickname (
str) – nickname for interpolator- Returns:
an interpolator, or
NULLon error.- Return type:
Look up an interpolator from a nickname and make one. You need to free the result with [method`GObject`.Object.unref] when you’re done with it.
::: seealso [func`type_find`].
- get_window_offset()¶
- Returns:
the interpolators required window offset
- Return type:
Look up an interpolators desired window offset.
- get_window_size()¶
- Returns:
the interpolators required window size
- Return type:
Look up an interpolators desired window size.
- do_get_window_offset() virtual¶
- Returns:
the interpolators required window offset
- Return type:
Look up an interpolators desired window offset.
- do_get_window_size() virtual¶
- Returns:
the interpolators required window size
- Return type:
Look up an interpolators desired window size.