Struct libvips::ops::MapimOptions
source · 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 more