Table of Contents

Method ZoomTo

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

ZoomTo(float, SKPoint)

Starts an animated zoom by the given multiplicative factor around a focal point.

public void ZoomTo(float factor, SKPoint focalPoint)

Parameters

factor float

The scale multiplier to apply (e.g., 2.0 to double the current zoom).

focalPoint SKPoint

The point in view coordinates to zoom towards.

Remarks

The animation uses a cubic-out easing curve and runs for ZoomAnimationDuration milliseconds. Any previously running zoom animation is stopped before the new one begins.