pub fn blur(
(sigma_x, sigma_y): (scalar, scalar),
tile_mode: impl Into<Option<TileMode>>,
input: impl Into<Option<ImageFilter>>,
crop_rect: impl Into<CropRect>,
) -> Option<ImageFilter>
Expand description
Create a filter that blurs its input by the separate X and Y sigmas. The provided tile mode is used when the blur kernel goes outside the input image.
sigma_x
- The Gaussian sigma value for blurring along the X axis.sigma_y
- The Gaussian sigma value for blurring along the Y axis.tile_mode
- The tile mode applied at edges .input
- The input filter that is blurred, uses source bitmap if this is null.crop_rect
- Optional rectangle that crops the input and output.