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: VipsInterpolate

interpolate: VipsInterpolate -> Interpolate pixels with this

§oarea: Vec<i32>

oarea: Vec<i32> -> Area of output to generate

§odx: f64

odx: f64 -> Horizontal output displacement min: -10000000, max: 10000000, default: 0

§ody: f64

ody: f64 -> Vertical output displacement min: -10000000, max: 10000000, default: 0

§idx: f64

idx: f64 -> Horizontal input displacement min: -10000000, max: 10000000, default: 0

§idy: f64

idy: f64 -> Vertical input displacement min: -10000000, max: 10000000, default: 0

§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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.