FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ColorMatrixAlphaMode

    enum · ferroui-base · v0.5.0

    enum ColorMatrixAlphaMode
    

    How a ColorMatrix treats the premultiplied colours it is applied to (Win2D CanvasAlphaMode of ColorMatrixEffect.AlphaMode, Direct2D's D2D1_COLORMATRIX_ALPHA_MODE).

    View source

    Members

    Premultiplied

    Premultiplied
    

    The colour is un-premultiplied, the matrix applied to [R, G, B, a, 1] and the result premultiplied again (the Win2D default).

    Source

    Straight

    Straight
    

    The matrix is applied to the premultiplied colour as it is, [R a, G a, B a, a, 1], and the result taken as premultiplied (its colour clamped to its alpha).

    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
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

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