Function vizia::vg::image_filters::erode
pub fn erode(
_: (f32, f32),
input: impl Into<Option<RCHandle<SkImageFilter>>>,
crop_rect: impl Into<CropRect>,
) -> Option<RCHandle<SkImageFilter>>
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.