FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ImmutableLuminanceToAlphaEffect

    struct · ferroui-base · v0.5.0

    struct ImmutableLuminanceToAlphaEffect
    

    Converts rendered color to a luminance mask. The output is black with alpha 0.2126 R + 0.7152 G + 0.0722 B, using premultiplied color channels. Thus transparent pixels stay transparent and existing alpha is consumed once. The conversion does not expand the content bounds.

    View source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • 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
    • IEffect
    • IImmutableEffect

    Availability

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