pub struct VipsInterpolate { /* private fields */ }Implementations§
Source§impl VipsInterpolate
impl VipsInterpolate
Sourcepub fn new() -> VipsInterpolate
pub fn new() -> VipsInterpolate
defaults to vips_interpolate_nearest_static
Sourcepub fn new_from_neasest_static() -> VipsInterpolate
pub fn new_from_neasest_static() -> VipsInterpolate
A convenience function that returns a nearest-neighbour interpolator you don’t need to free.
Sourcepub fn new_from_bilinear_static() -> VipsInterpolate
pub fn new_from_bilinear_static() -> VipsInterpolate
A convenience function that returns a bilinear interpolator you don’t need to free.
Sourcepub fn new_from_name(name: &str) -> Result<VipsInterpolate>
pub fn new_from_name(name: &str) -> Result<VipsInterpolate>
Look up an interpolator from a nickname and make one.
Sourcepub fn get_window_size(&self) -> i32
pub fn get_window_size(&self) -> i32
Look up an interpolators desired window size.
Sourcepub fn get_windows_offset(&self) -> i32
pub fn get_windows_offset(&self) -> i32
Look up an interpolators desired window offset.
Trait Implementations§
Source§impl Clone for VipsInterpolate
impl Clone for VipsInterpolate
Source§fn clone(&self) -> VipsInterpolate
fn clone(&self) -> VipsInterpolate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VipsInterpolate
impl Debug for VipsInterpolate
Source§impl Default for VipsInterpolate
impl Default for VipsInterpolate
Source§fn default() -> VipsInterpolate
fn default() -> VipsInterpolate
Returns the “default value” for a type. Read more
Source§impl Drop for VipsInterpolate
impl Drop for VipsInterpolate
Source§impl From<*mut _VipsInterpolate> for VipsInterpolate
impl From<*mut _VipsInterpolate> for VipsInterpolate
Source§fn from(value: *mut VipsInterpolate) -> Self
fn from(value: *mut VipsInterpolate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VipsInterpolate
impl RefUnwindSafe for VipsInterpolate
impl !Send for VipsInterpolate
impl !Sync for VipsInterpolate
impl Unpin for VipsInterpolate
impl UnwindSafe for VipsInterpolate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more