pub struct NormalizeOptions {
pub input: PathBuf,
pub output: PathBuf,
pub width: Option<u32>,
pub height: Option<u32>,
pub anchor_x: AnchorX,
pub anchor_y: AnchorY,
pub pad: u32,
}Expand description
Options for normalizing multiple frames onto a shared canvas and anchor.
Fields§
§input: PathBufInput PNG file or directory containing PNG frames.
output: PathBufOutput directory for normalized PNG frames.
width: Option<u32>Target canvas width. When None, the maximum input width is used.
height: Option<u32>Target canvas height. When None, the maximum input height is used.
anchor_x: AnchorXHorizontal anchor used to place each frame on the canvas.
anchor_y: AnchorYVertical anchor used to place each frame on the canvas.
pad: u32Extra padding added around the final canvas.
Trait Implementations§
Source§impl Clone for NormalizeOptions
impl Clone for NormalizeOptions
Source§fn clone(&self) -> NormalizeOptions
fn clone(&self) -> NormalizeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NormalizeOptions
impl RefUnwindSafe for NormalizeOptions
impl Send for NormalizeOptions
impl Sync for NormalizeOptions
impl Unpin for NormalizeOptions
impl UnsafeUnpin for NormalizeOptions
impl UnwindSafe for NormalizeOptions
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