#[repr(u32)]pub enum InterpType {
NEAREST = 0,
LINEAR = 1,
BILINEAR = 2,
CUBIC = 3,
LOWER = 4,
LINEAR_COSINE = 5,
BILINEAR_COSINE = 6,
BICUBIC = 7,
CUBIC_SPLINE = 8,
BICUBIC_SPLINE = 9,
}
Expand description
Dictates the interpolation method to be used by a function
Variants§
NEAREST = 0
Nearest Neighbor interpolation method
LINEAR = 1
Linear interpolation method
BILINEAR = 2
Bilinear interpolation method
CUBIC = 3
Cubic interpolation method
LOWER = 4
Floor indexed
LINEAR_COSINE = 5
Linear interpolation with cosine smoothing
BILINEAR_COSINE = 6
Bilinear interpolation with cosine smoothing
BICUBIC = 7
Bicubic interpolation
CUBIC_SPLINE = 8
Cubic interpolation with Catmull-Rom splines
BICUBIC_SPLINE = 9
Bicubic interpolation with Catmull-Rom splines
Trait Implementations§
Source§impl Clone for InterpType
impl Clone for InterpType
Source§fn clone(&self) -> InterpType
fn clone(&self) -> InterpType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterpType
impl Debug for InterpType
Source§impl From<u32> for InterpType
impl From<u32> for InterpType
Source§impl PartialEq for InterpType
impl PartialEq for InterpType
impl Copy for InterpType
impl StructuralPartialEq for InterpType
Auto Trait Implementations§
impl Freeze for InterpType
impl RefUnwindSafe for InterpType
impl Send for InterpType
impl Sync for InterpType
impl Unpin for InterpType
impl UnwindSafe for InterpType
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