FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionBitmapInterpolationMode

    enum · ferroui-base · v0.5.0

    enum CompositionBitmapInterpolationMode
    

    How a bitmap is resampled when a composition surface brush scales it (WinUI CompositionBitmapInterpolationMode).

    View source

    Members

    NearestNeighbor

    NearestNeighbor = 0
    

    The nearest pixel.

    Source

    Linear

    Linear = 1
    

    Linear interpolation (the WinUI default).

    Source

    MagLinearMinLinearMipLinear

    MagLinearMinLinearMipLinear = 2
    

    Source

    MagLinearMinLinearMipNearest

    MagLinearMinLinearMipNearest = 3
    

    Source

    MagLinearMinNearestMipLinear

    MagLinearMinNearestMipLinear = 4
    

    Source

    MagLinearMinNearestMipNearest

    MagLinearMinNearestMipNearest = 5
    

    Source

    MagNearestMinLinearMipLinear

    MagNearestMinLinearMipLinear = 6
    

    Source

    MagNearestMinLinearMipNearest

    MagNearestMinLinearMipNearest = 7
    

    Source

    MagNearestMinNearestMipLinear

    MagNearestMinNearestMipLinear = 8
    

    Source

    MagNearestMinNearestMipNearest

    MagNearestMinNearestMipNearest = 9
    

    Source

    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).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • ServerPropertyValue
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • BatchValue

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.