pub fn blend(
mode: impl Into<Blender>,
background: impl Into<Option<ImageFilter>>,
foreground: impl Into<Option<ImageFilter>>,
crop_rect: impl Into<CropRect>,
) -> Option<ImageFilter>
Expand description
This filter takes an crate::BlendMode
and uses it to composite the two filters together.
blender
- The blender that defines the compositing operationbackground
- The Dst pixels used in blending, if null the source bitmap is used.foreground
- The Src pixels used in blending, if null the source bitmap is used.- `crop_rect`` Optional rectangle to crop input and output.