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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqIEffectIImmutableEffect
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.