pub struct GravityOptions {
pub extend: Extend,
pub background: Vec<f64>,
}
Expand description
Options for gravity operation
Fields§
§extend: Extend
extend: Extend
-> How to generate the extra pixels
Black
-> VIPS_EXTEND_BLACK = 0 [DEFAULT]
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
Last
-> VIPS_EXTEND_LAST = 6
background: Vec<f64>
background: Vec<f64>
-> Color for background pixels
Trait Implementations§
Source§impl Clone for GravityOptions
impl Clone for GravityOptions
Source§fn clone(&self) -> GravityOptions
fn clone(&self) -> GravityOptions
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 GravityOptions
impl Debug for GravityOptions
Auto Trait Implementations§
impl Freeze for GravityOptions
impl RefUnwindSafe for GravityOptions
impl Send for GravityOptions
impl Sync for GravityOptions
impl Unpin for GravityOptions
impl UnwindSafe for GravityOptions
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