pub struct ResizeOptions {
pub kernel: Kernel,
pub gap: f64,
pub vscale: f64,
}
Expand description
Options for resize 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: 2
vscale: f64
vscale: f64
-> Vertical scale image by this factor
min: 0, max: 10000000, default: 0
Trait Implementations§
Source§impl Clone for ResizeOptions
impl Clone for ResizeOptions
Source§fn clone(&self) -> ResizeOptions
fn clone(&self) -> ResizeOptions
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 ResizeOptions
impl Debug for ResizeOptions
Auto Trait Implementations§
impl Freeze for ResizeOptions
impl RefUnwindSafe for ResizeOptions
impl Send for ResizeOptions
impl Sync for ResizeOptions
impl Unpin for ResizeOptions
impl UnwindSafe for ResizeOptions
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