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