skia_safe::image_filters

Function compose

Source
pub fn compose(
    outer: impl Into<ImageFilter>,
    inner: impl Into<ImageFilter>,
) -> Option<ImageFilter>
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.