skia_safe::image_filters

Function picture

Source
pub fn picture<'a>(
    pic: impl Into<Picture>,
    target_rect: impl Into<Option<&'a Rect>>,
) -> Option<ImageFilter>
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.