pub struct SheetGeometry {
pub dpi: f64,
pub width: usize,
pub height: usize,
pub margin: usize,
pub frame: (usize, usize),
pub strips: Strips,
pub frames: Vec<FrameRect>,
}Expand description
The sheet’s physical arrangement, resolved to pixels.
Kept separate from the render so that a caller can size the frame before asking for it — the photo has to be cropped and sampled at exactly this width, because a sheet scaled afterwards would be a lie about grain and about the size of the film.
Fields§
§dpi: f64Output resolution, in dots per inch.
width: usizeSheet width in pixels.
height: usizeSheet height in pixels.
margin: usizePaper margin around the strips, in pixels.
frame: (usize, usize)The frame’s pixel size, which is the size a frame is developed at.
strips: StripsWhich way the strips lie.
frames: Vec<FrameRect>One rect per development, in the order they were given.
Implementations§
Trait Implementations§
Source§impl Clone for SheetGeometry
impl Clone for SheetGeometry
Source§impl Debug for SheetGeometry
impl Debug for SheetGeometry
Source§impl PartialEq for SheetGeometry
impl PartialEq for SheetGeometry
impl StructuralPartialEq for SheetGeometry
Auto Trait Implementations§
impl Forget for SheetGeometry
impl Freeze for SheetGeometry
impl Move for SheetGeometry
impl RefUnwindSafe for SheetGeometry
impl Send for SheetGeometry
impl Sync for SheetGeometry
impl Unpin for SheetGeometry
impl UnsafeUnpin for SheetGeometry
impl UnwindSafe for SheetGeometry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more