Enum stitchy_core::TakeFrom
source · pub enum TakeFrom {
Start,
End,
}
Expand description
Enums used for configuring the image stitching process Configure which end of the set of files to take from. The first file used will be the one at the specified end, and then the next file in from the end, and so on. The meaning of TakeFrom::Start or TakeFrom::End depends on the ordering specified with OrderBy.
With files named “a.jpg”, “b.jpg”, and “c.jpg”, electing to stitch 2 files together with OrderBy::Alphabetic, then TakeFrom::Start will process files “a.jpg” then “b.jpg”, while TakeFrom::End will process files “c.jpg” then “b.jpg”.
For ordering OrderBy::Latest, the last-updated timestamps of the files determines the order: TakeFrom::Start will begin with the most recent file first and working backwards, while TakeFrom::End will take the oldest file and work forwards.