vizia::vg::image_filters

Function compose

pub fn compose(
    outer: impl Into<RCHandle<SkImageFilter>>,
    inner: impl Into<RCHandle<SkImageFilter>>,
) -> Option<RCHandle<SkImageFilter>>
Expand description

Create a filter that composes ‘inner’ with ‘outer’, such that the results of ‘inner’ are treated as the source bitmap passed to ‘outer’, i.e. result = outer(inner(source)).

  • outer - The outer filter that evaluates the results of inner.
  • inner - The inner filter that produces the input to outer.