pub fn drop_shadow(
offset: impl Into<Vector>,
(sigma_x, sigma_y): (scalar, scalar),
color: impl Into<Color4f>,
color_space: impl Into<Option<ColorSpace>>,
input: impl Into<Option<ImageFilter>>,
crop_rect: impl Into<CropRect>,
) -> Option<ImageFilter>
Expand description
Create a filter that draws a drop shadow under the input content. This filter produces an image that includes the inputs’ content.
offset
- The offset of the shadow.sigma_x
- The blur radius for the shadow, along the X axis.sigma_y
- The blur radius for the shadow, along the Y axis.color
- The color of the drop shadow.color_space
- The color space of the drop shadow color.input
- The input filter, or will use the source bitmap if this is null.crop_rect
- Optional rectangle that crops the input and output.