pub struct MapimOptions {
pub interpolate: VipsInterpolate,
pub background: Vec<f64>,
pub premultiplied: bool,
pub extend: Extend,
}
Expand description
Options for mapim operation
Fields§
§interpolate: VipsInterpolate
interpolate: VipsInterpolate
-> Interpolate pixels with this
background: Vec<f64>
background: Vec<f64>
-> Background value
premultiplied: bool
premultiplied: bool
-> Images have premultiplied alpha
default: false
extend: Extend
extend: Extend
-> How to generate the extra pixels
Black
-> VIPS_EXTEND_BLACK = 0
Copy
-> VIPS_EXTEND_COPY = 1
Repeat
-> VIPS_EXTEND_REPEAT = 2
Mirror
-> VIPS_EXTEND_MIRROR = 3
White
-> VIPS_EXTEND_WHITE = 4
Background
-> VIPS_EXTEND_BACKGROUND = 5 [DEFAULT]
Last
-> VIPS_EXTEND_LAST = 6
Trait Implementations§
Source§impl Clone for MapimOptions
impl Clone for MapimOptions
Source§fn clone(&self) -> MapimOptions
fn clone(&self) -> MapimOptions
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 MapimOptions
impl Debug for MapimOptions
Auto Trait Implementations§
impl Freeze for MapimOptions
impl RefUnwindSafe for MapimOptions
impl !Send for MapimOptions
impl !Sync for MapimOptions
impl Unpin for MapimOptions
impl UnwindSafe for MapimOptions
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