skia_safe::image_filters

Function erode

Source
pub fn erode(
    (radius_x, radius_y): (scalar, scalar),
    input: impl Into<Option<ImageFilter>>,
    crop_rect: impl Into<CropRect>,
) -> Option<ImageFilter>
Expand description

Create a filter that erodes each input pixel’s channel values to the minimum channel value within the given radii along the x and y axes.

  • radius_x - The distance to erode along the x axis to either side of each pixel.
  • radius_y - The distance to erode along the y axis to either side of each pixel.
  • input - The image filter that is eroded, using source bitmap if this is null.
  • crop_rect - Optional rectangle that crops the input and output.