skia_safe::image_filters

Function magnifier

Source
pub fn magnifier(
    lens_bounds: impl AsRef<Rect>,
    zoom_amount: scalar,
    inset: scalar,
    sampling: SamplingOptions,
    input: impl Into<Option<ImageFilter>>,
    crop_rect: impl Into<CropRect>,
) -> Option<ImageFilter>
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.