Struct stitchy_core::StitchBuilder
source · pub struct StitchBuilder { /* private fields */ }
Expand description
Type used for running the image stitching process Builder for a Stitch.
Performs all of the configuration for the stitch, and triggers generation of the output image. Source images are provided using the ImageFiles struct, which has its own builder.
See crate-level documentation for examples.
Implementations§
source§impl StitchBuilder
impl StitchBuilder
pub fn images(self, images: Vec<DynamicImage>) -> StitchBuilder
pub fn image_files<P>(
self,
files: ImageFiles<P>
) -> Result<StitchBuilder, String>where
P: FileProperties + Debug,
pub fn alignment(self, alignment: AlignmentMode) -> StitchBuilder
pub fn width_limit(self, width_limit: u32) -> StitchBuilder
pub fn height_limit(self, height_limit: u32) -> StitchBuilder
pub fn stitch(self) -> Result<DynamicImage, String>
Trait Implementations§
source§impl Debug for StitchBuilder
impl Debug for StitchBuilder
source§impl Default for StitchBuilder
impl Default for StitchBuilder
source§fn default() -> StitchBuilder
fn default() -> StitchBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StitchBuilder
impl RefUnwindSafe for StitchBuilder
impl Send for StitchBuilder
impl Sync for StitchBuilder
impl Unpin for StitchBuilder
impl UnwindSafe for StitchBuilder
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