Function magnifier
pub fn magnifier(
lens_bounds: impl AsRef<Rect>,
zoom_amount: f32,
inset: f32,
sampling: SamplingOptions,
input: impl Into<Option<RCHandle<SkImageFilter>>>,
crop_rect: impl Into<CropRect>,
) -> Option<RCHandle<SkImageFilter>>
Expand description
Create a filter that fills ‘lens_bounds’ with a magnification of the input.
lens_bounds
- The outer bounds of the magnifier effectzoom_amount
- The amount of magnification applied to the input imageinset
- The size or width of the fish-eye distortion around the magnified contentsampling
- TheSamplingOptions
applied to the input image when magnifiedinput
- The input filter that is magnified; if null the source bitmap is usedcrop_rect
- Optional rectangle that crops the input and output.