skia_safe::image_filters

Function merge

Source
pub fn merge(
    filters: impl IntoIterator<Item = Option<ImageFilter>>,
    crop_rect: impl Into<CropRect>,
) -> Option<ImageFilter>
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.