pub struct Resampler { /* private fields */ }Expand description
Generic resampler that can use any resampling method
Implementations§
Source§impl Resampler
impl Resampler
Sourcepub const fn new(method: ResamplingMethod) -> Self
pub const fn new(method: ResamplingMethod) -> Self
Creates a new resampler with the specified method
Sourcepub fn resample(
&self,
src: &RasterBuffer,
dst_width: u64,
dst_height: u64,
) -> Result<RasterBuffer>
pub fn resample( &self, src: &RasterBuffer, dst_width: u64, dst_height: u64, ) -> Result<RasterBuffer>
Sourcepub const fn method(&self) -> ResamplingMethod
pub const fn method(&self) -> ResamplingMethod
Returns the resampling method
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resampler
impl RefUnwindSafe for Resampler
impl Send for Resampler
impl Sync for Resampler
impl Unpin for Resampler
impl UnsafeUnpin for Resampler
impl UnwindSafe for Resampler
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