Function vizia::vg::image_filters::shader
pub fn shader(
shader: impl Into<RCHandle<SkShader>>,
crop_rect: impl Into<CropRect>,
) -> Option<RCHandle<SkImageFilter>>
Expand description
Create a filter that fills the output with the per-pixel evaluation of the Shader
. The
shader is defined in the image filter’s local coordinate system, so will automatically
be affected by [Canvas'
] transform.
Like image()
and Picture(), this is a leaf filter that can be used to introduce inputs to
a complex filter graph, but should generally be combined with a filter that as at least
one null input to use the implicit source image.
shader
- The shader that fills the result image