vizia::vg::image_filters

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 effect
  • zoom_amount - The amount of magnification applied to the input image
  • inset - The size or width of the fish-eye distortion around the magnified content
  • sampling - The SamplingOptions applied to the input image when magnified
  • input - The input filter that is magnified; if null the source bitmap is used
  • crop_rect - Optional rectangle that crops the input and output.