Table of Contents

Method SetScaleRange

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

SetScaleRange(float, float)

Sets both MinScale and MaxScale atomically, avoiding ordering-dependent validation errors when the desired range lies entirely outside the current default range of [0.1, 10].

public void SetScaleRange(float minScale, float maxScale)

Parameters

minScale float

The minimum scale value. Must be positive and less than maxScale.

maxScale float

The maximum scale value. Must be positive and greater than minScale.

Exceptions

ArgumentOutOfRangeException

Thrown when minScale is less than or equal to zero, maxScale is less than or equal to zero, or minScale is greater than or equal to maxScale.