LinearTransferEffect
struct · ferroui-base · v0.5.0
struct LinearTransferEffect
Maps each channel of its source through a line, slope * c + offset
(Win2D LinearTransferEffect): a colour matrix that scales each channel
and adds an offset. A disabled channel is kept as it is. Animatable:
RedSlope, RedOffset, GreenSlope, GreenOffset, BlueSlope,
BlueOffset, AlphaSlope, AlphaOffset.
Members
namered_offsetred_slopered_disablegreen_offsetgreen_slopegreen_disableblue_offsetblue_slopeblue_disablealpha_offsetalpha_slopealpha_disablealpha_modeclamp_outputsource
name
name: String
The name of the effect.
red_offset
red_offset: f32
The offset of red (default 0).
red_slope
red_slope: f32
The slope of red (default 1).
red_disable
red_disable: bool
Whether red is kept as it is (default false).
green_offset
green_offset: f32
The offset of green (default 0).
green_slope
green_slope: f32
The slope of green (default 1).
green_disable
green_disable: bool
Whether green is kept as it is (default false).
blue_offset
blue_offset: f32
The offset of blue (default 0).
blue_slope
blue_slope: f32
The slope of blue (default 1).
blue_disable
blue_disable: bool
Whether blue is kept as it is (default false).
alpha_offset
alpha_offset: f32
The offset of alpha (default 0).
alpha_slope
alpha_slope: f32
The slope of alpha (default 1).
alpha_disable
alpha_disable: bool
Whether alpha is kept as it is (default false).
alpha_mode
alpha_mode: crate::media::ColorMatrixAlphaMode
Whether the lines apply to premultiplied or straight colours (default premultiplied: the colour is un-premultiplied first).
clamp_output
clamp_output: bool
Whether the output is clamped (stored; the drawing contexts clamp).
source
source: Option<GraphicsEffectSource>
The input.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherFrom<LinearTransferEffect>CloneDebugStructuralPartialEqPartialEqDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.