#[repr(i32)]pub enum CompositionBitmapInterpolationMode {
NearestNeighbor = 0,
Linear = 1,
MagLinearMinLinearMipLinear = 2,
MagLinearMinLinearMipNearest = 3,
MagLinearMinNearestMipLinear = 4,
MagLinearMinNearestMipNearest = 5,
MagNearestMinLinearMipLinear = 6,
MagNearestMinLinearMipNearest = 7,
MagNearestMinNearestMipLinear = 8,
MagNearestMinNearestMipNearest = 9,
}Expand description
How a bitmap is resampled when a composition surface brush scales it
(WinUI CompositionBitmapInterpolationMode).
Variants§
NearestNeighbor = 0
The nearest pixel.
Linear = 1
Linear interpolation (the WinUI default).
MagLinearMinLinearMipLinear = 2
MagLinearMinLinearMipNearest = 3
MagLinearMinNearestMipLinear = 4
MagLinearMinNearestMipNearest = 5
MagNearestMinLinearMipLinear = 6
MagNearestMinLinearMipNearest = 7
MagNearestMinNearestMipLinear = 8
MagNearestMinNearestMipNearest = 9
Implementations§
Source§impl CompositionBitmapInterpolationMode
impl CompositionBitmapInterpolationMode
Sourcepub fn to_bitmap_interpolation_mode(self) -> BitmapInterpolationMode
pub fn to_bitmap_interpolation_mode(self) -> BitmapInterpolationMode
The interpolation mode of the drawing context that comes closest.
Deviation (winui-composition.md): the drawing contexts have one quality setting, not separate minification, magnification and mip filters. Nearest magnification maps to no interpolation, a linear filter with linear mip filtering to the medium quality (mipmaps), every other linear filter to the low quality (bilinear).
Trait Implementations§
impl Copy for CompositionBitmapInterpolationMode
impl Eq for CompositionBitmapInterpolationMode
impl StructuralPartialEq for CompositionBitmapInterpolationMode
Auto Trait Implementations§
impl Freeze for CompositionBitmapInterpolationMode
impl RefUnwindSafe for CompositionBitmapInterpolationMode
impl Send for CompositionBitmapInterpolationMode
impl Sync for CompositionBitmapInterpolationMode
impl Unpin for CompositionBitmapInterpolationMode
impl UnsafeUnpin for CompositionBitmapInterpolationMode
impl UnwindSafe for CompositionBitmapInterpolationMode
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more