pub struct EmbedOptions {
pub extend: Extend,
pub background: Vec<f64>,
}
Expand description
Options for embed 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 EmbedOptions
impl Clone for EmbedOptions
Source§fn clone(&self) -> EmbedOptions
fn clone(&self) -> EmbedOptions
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 EmbedOptions
impl Debug for EmbedOptions
Auto Trait Implementations§
impl Freeze for EmbedOptions
impl RefUnwindSafe for EmbedOptions
impl Send for EmbedOptions
impl Sync for EmbedOptions
impl Unpin for EmbedOptions
impl UnwindSafe for EmbedOptions
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