pub struct ColorMatrixEffect {
pub name: String,
pub color_matrix: ColorMatrix,
pub alpha_mode: ColorMatrixAlphaMode,
pub clamp_output: bool,
pub source: Option<GraphicsEffectSource>,
}Expand description
Transforms the colours of its source by a matrix (Win2D
ColorMatrixEffect).
Fields§
§name: StringThe name of the effect.
color_matrix: ColorMatrixThe matrix (default the identity).
alpha_mode: ColorMatrixAlphaModeWhether the matrix applies to premultiplied or straight colours (default premultiplied).
clamp_output: boolWhether the output is clamped to 0..1 (default false; the drawing
contexts always clamp).
source: Option<GraphicsEffectSource>The input.
Trait Implementations§
Source§impl Clone for ColorMatrixEffect
impl Clone for ColorMatrixEffect
Source§impl Debug for ColorMatrixEffect
impl Debug for ColorMatrixEffect
Source§impl Default for ColorMatrixEffect
impl Default for ColorMatrixEffect
Source§impl From<ColorMatrixEffect> for GraphicsEffect
impl From<ColorMatrixEffect> for GraphicsEffect
Source§fn from(effect: ColorMatrixEffect) -> Self
fn from(effect: ColorMatrixEffect) -> Self
Converts to this type from the input type.
Source§impl From<ColorMatrixEffect> for GraphicsEffectSource
impl From<ColorMatrixEffect> for GraphicsEffectSource
Source§fn from(effect: ColorMatrixEffect) -> Self
fn from(effect: ColorMatrixEffect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ColorMatrixEffect
impl PartialEq for ColorMatrixEffect
impl StructuralPartialEq for ColorMatrixEffect
Auto Trait Implementations§
impl Freeze for ColorMatrixEffect
impl RefUnwindSafe for ColorMatrixEffect
impl Send for ColorMatrixEffect
impl Sync for ColorMatrixEffect
impl Unpin for ColorMatrixEffect
impl UnsafeUnpin for ColorMatrixEffect
impl UnwindSafe for ColorMatrixEffect
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more