Struct libvips::ops::AffineOptions
source · pub struct AffineOptions {
pub interpolate: VipsInterpolate,
pub oarea: Vec<i32>,
pub odx: f64,
pub ody: f64,
pub idx: f64,
pub idy: f64,
pub background: Vec<f64>,
pub premultiplied: bool,
pub extend: Extend,
}Expand description
Options for affine operation
Fields§
§interpolate: VipsInterpolateinterpolate: VipsInterpolate -> Interpolate pixels with this
oarea: Vec<i32>oarea: Vec<i32> -> Area of output to generate
odx: f64odx: f64 -> Horizontal output displacement
min: -10000000, max: 10000000, default: 0
ody: f64ody: f64 -> Vertical output displacement
min: -10000000, max: 10000000, default: 0
idx: f64idx: f64 -> Horizontal input displacement
min: -10000000, max: 10000000, default: 0
idy: f64idy: f64 -> Vertical input displacement
min: -10000000, max: 10000000, default: 0
background: Vec<f64>background: Vec<f64> -> Background value
premultiplied: boolpremultiplied: bool -> Images have premultiplied alpha
default: false
extend: Extendextend: 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 AffineOptions
impl Clone for AffineOptions
source§fn clone(&self) -> AffineOptions
fn clone(&self) -> AffineOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more