CompositionBitmapInterpolationMode
enum · ferroui-base · v0.5.0
enum CompositionBitmapInterpolationMode
How a bitmap is resampled when a composition surface brush scales it
(WinUI CompositionBitmapInterpolationMode).
Members
NearestNeighborLinearMagLinearMinLinearMipLinearMagLinearMinLinearMipNearestMagLinearMinNearestMipLinearMagLinearMinNearestMipNearestMagNearestMinLinearMipLinearMagNearestMinLinearMipNearestMagNearestMinNearestMipLinearMagNearestMinNearestMipNearestto_bitmap_interpolation_mode
NearestNeighbor
NearestNeighbor = 0
The nearest pixel.
Linear
Linear = 1
Linear interpolation (the WinUI default).
MagLinearMinLinearMipLinear
MagLinearMinLinearMipLinear = 2
MagLinearMinLinearMipNearest
MagLinearMinLinearMipNearest = 3
MagLinearMinNearestMipLinear
MagLinearMinNearestMipLinear = 4
MagLinearMinNearestMipNearest
MagLinearMinNearestMipNearest = 5
MagNearestMinLinearMipLinear
MagNearestMinLinearMipLinear = 6
MagNearestMinLinearMipNearest
MagNearestMinLinearMipNearest = 7
MagNearestMinNearestMipLinear
MagNearestMinNearestMipLinear = 8
MagNearestMinNearestMipNearest
MagNearestMinNearestMipNearest = 9
to_bitmap_interpolation_mode
fn to_bitmap_interpolation_mode(self: 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
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherServerPropertyValueCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashBatchValue
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.