Struct libvips::ops::SmartcropOptions
source · pub struct SmartcropOptions {
pub attention_x: i32,
pub attention_y: i32,
pub interesting: Interesting,
pub premultiplied: bool,
}
Expand description
Options for smartcrop operation
Fields§
§attention_x: i32
attention_x: i32
-> Horizontal position of attention centre
min: 0, max: 10000000, default: 0
attention_y: i32
attention_y: i32
-> Vertical position of attention centre
min: 0, max: 10000000, default: 0
interesting: Interesting
interesting: Interesting
-> How to measure interestingness
None
-> VIPS_INTERESTING_NONE = 0
Centre
-> VIPS_INTERESTING_CENTRE = 1
Entropy
-> VIPS_INTERESTING_ENTROPY = 2
Attention
-> VIPS_INTERESTING_ATTENTION = 3 [DEFAULT]
Low
-> VIPS_INTERESTING_LOW = 4
High
-> VIPS_INTERESTING_HIGH = 5
All
-> VIPS_INTERESTING_ALL = 6
Last
-> VIPS_INTERESTING_LAST = 7
premultiplied: bool
premultiplied: bool
-> Input image already has premultiplied alpha
default: false
Trait Implementations§
source§impl Clone for SmartcropOptions
impl Clone for SmartcropOptions
source§fn clone(&self) -> SmartcropOptions
fn clone(&self) -> SmartcropOptions
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 SmartcropOptions
impl Debug for SmartcropOptions
Auto Trait Implementations§
impl RefUnwindSafe for SmartcropOptions
impl Send for SmartcropOptions
impl Sync for SmartcropOptions
impl Unpin for SmartcropOptions
impl UnwindSafe for SmartcropOptions
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