Function vizia::vg::image_filters::blend
pub fn blend(
mode: impl Into<RCHandle<SkBlender>>,
background: impl Into<Option<RCHandle<SkImageFilter>>>,
foreground: impl Into<Option<RCHandle<SkImageFilter>>>,
crop_rect: impl Into<CropRect>,
) -> Option<RCHandle<SkImageFilter>>
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.