pub struct ResizeParams {
pub width: i64,
pub height: i64,
pub mode: ResizeMode,
pub sampling: ResizeSampling,
}Expand description
Resamples a raster into static output bounds.
Fields§
§width: i64Output width in pixels.
height: i64Output height in pixels.
mode: ResizeModeHow the source raster should fit the output bounds.
sampling: ResizeSamplingSampling filter used when resizing.
Trait Implementations§
Source§impl Clone for ResizeParams
impl Clone for ResizeParams
Source§impl Debug for ResizeParams
impl Debug for ResizeParams
Source§impl Default for ResizeParams
impl Default for ResizeParams
Source§impl Delegated for ResizeParams
impl Delegated for ResizeParams
type Delegate = ResizeParamsDelegate
fn into_delegate(self) -> Self::Delegate
Auto Trait Implementations§
impl Freeze for ResizeParams
impl RefUnwindSafe for ResizeParams
impl Send for ResizeParams
impl Sync for ResizeParams
impl Unpin for ResizeParams
impl UnsafeUnpin for ResizeParams
impl UnwindSafe for ResizeParams
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