vizia::vg::image_filters

Function merge

pub fn merge(
    filters: impl IntoIterator<Item = Option<RCHandle<SkImageFilter>>>,
    crop_rect: impl Into<CropRect>,
) -> Option<RCHandle<SkImageFilter>>
Expand description

Create a filter that merges the filters together by drawing their results in order with src-over blending.

  • filters - The input filter array to merge. Any None filter pointers will use the source bitmap instead.
  • crop_rect - Optional rectangle that crops all input filters and the output.