RenderPageAsync(Int32, Double, IRenderSurface, CancellationToken) Method

Definition

Assembly Broadside.Viewer.dll

Renders a whole page at a scale as one tile and presents it to surface.

public Task<Tile> RenderPageAsync(int pageIndex, double scale, IRenderSurface surface, CancellationToken cancellationToken = default(CancellationToken))

Parameters

pageIndex
Int32

The zero-based page.

scale
Double

Pixels per point.

surface
IRenderSurface

Where the finished pixels go.

cancellationToken
CancellationToken

Stops the render.

Returns

Task<Tile>
The tile presented.

Remarks

ISO 32000-2 §10.7.1 and §14.11.2.