Interface IS100DatasetRenderer<TResult>
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
TResultThe 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
layerS100LayerThe dataset + portrayal lens to render.
optionsS100RendererOptionsRender options, or
nullfor defaults.cancellationTokenCancellationTokenCancellation token observed cooperatively.
Returns
- Task<TResult>
The rendered result.
Exceptions
- NotSupportedException
The layer's dataset shape cannot be rendered to an image.