pub struct ReduceOptions {
pub kernel: Kernel,
pub gap: f64,
}
Expand description
Options for reduce operation
Fields§
§kernel: Kernel
kernel: Kernel
-> Resampling kernel
Nearest
-> VIPS_KERNEL_NEAREST = 0
Linear
-> VIPS_KERNEL_LINEAR = 1
Cubic
-> VIPS_KERNEL_CUBIC = 2
Mitchell
-> VIPS_KERNEL_MITCHELL = 3
Lanczos2
-> VIPS_KERNEL_LANCZOS2 = 4
Lanczos3
-> VIPS_KERNEL_LANCZOS3 = 5 [DEFAULT]
Last
-> VIPS_KERNEL_LAST = 6
gap: f64
gap: f64
-> Reducing gap
min: 0, max: 1000000, default: 0
Trait Implementations§
Source§impl Clone for ReduceOptions
impl Clone for ReduceOptions
Source§fn clone(&self) -> ReduceOptions
fn clone(&self) -> ReduceOptions
Returns a copy 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 ReduceOptions
impl Debug for ReduceOptions
Auto Trait Implementations§
impl Freeze for ReduceOptions
impl RefUnwindSafe for ReduceOptions
impl Send for ReduceOptions
impl Sync for ReduceOptions
impl Unpin for ReduceOptions
impl UnwindSafe for ReduceOptions
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