Table of Contents

Method GetOptimalLevel

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

GetOptimalLevel(double, double)

Selects the optimal pyramid level for rendering, where one tile pixel ≈ one screen pixel.

public int GetOptimalLevel(double viewportWidth, double controlWidth)

Parameters

viewportWidth double

The viewport width (0-1 normalized, where 1.0 = full image fits).

controlWidth double

The control width in screen pixels.

Returns

int