Function vizia::vg::image_filters::picture

pub fn picture<'a>(
    pic: impl Into<RCHandle<SkPicture>>,
    target_rect: impl Into<Option<&'a Rect>>,
) -> Option<RCHandle<SkImageFilter>>
Expand description

Create a filter that produces the Picture as its output, clipped to both ‘target_rect’ and the picture’s internal cull rect.

  • pic - The picture that is drawn for the filter output.
  • target_rect - The drawing region for the picture.