Table of Contents

Method GetZoomRect

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

GetZoomRect(double)

Returns the logical rectangle that is currently visible in the control at the given viewport width. Height is derived from the control's pixel dimensions, not the image aspect ratio, so that the returned rect always matches the visible area regardless of control shape.

public Rect<double> GetZoomRect(double viewportWidth)

Parameters

viewportWidth double

Returns

Rect<double>