Table of Contents

Method SetScale

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

SetScale(float, SKPoint?)

Sets the zoom scale, clamping to MinScale/MaxScale, and raises TransformChanged.

public void SetScale(float scale, SKPoint? pivot = null)

Parameters

scale float

The desired zoom scale factor.

pivot SKPoint?

Optional pivot point in view coordinates. When provided, the offset is adjusted so the pivot point remains stationary after the scale change.