Table of Contents

Interface IS100DatasetRenderer<TResult>

Namespace
EncDotNet.S100
Assembly
EncDotNet.S100.dll

Renders an S-100 S100Layer to a result of type TResult. The result type is a parameter so the same abstraction can produce encoded image bytes (PngS100DatasetRenderer), and — in future — richer results such as bitmaps or Mapsui layer collections, without changing the contract.

public interface IS100DatasetRenderer<TResult>

Type Parameters

TResult

The rendered result type (e.g. byte[] of PNG data).

Extension Methods

Methods

RenderAsync(S100Layer, S100RendererOptions?, CancellationToken)

Renders a single layer.

Task<TResult> RenderAsync(S100Layer layer, S100RendererOptions? options = null, CancellationToken cancellationToken = default)

Parameters

layer S100Layer

The dataset + portrayal lens to render.

options S100RendererOptions

Render options, or null for defaults.

cancellationToken CancellationToken

Cancellation token observed cooperatively.

Returns

Task<TResult>

The rendered result.

Exceptions

NotSupportedException

The layer's dataset shape cannot be rendered to an image.