Skip to content

RenderingOptions

Namespace: ThinkGeo.Core

Represents rendering options used by Skia drawing components.

public class RenderingOptions

Inheritance ObjectRenderingOptions

Remarks:

Instances are typically created via RenderingOptions.FromDrawingQuality(DrawingQuality) as a preset, but every property can be overridden afterwards. When SkiaGeoCanvas.RenderingOptions is set directly, that value takes precedence over whatever DrawingQuality preset was active.

Properties

ImageAntiAlias

Gets or sets whether anti-aliasing is enabled for image rendering.

public bool ImageAntiAlias { get; set; }

Property Value

Boolean

VectorAntiAlias

Gets or sets whether anti-aliasing is enabled for vector rendering.

public bool VectorAntiAlias { get; set; }

Property Value

Boolean

TextAntiAlias

Gets or sets whether anti-aliasing is enabled for text rendering.

public bool TextAntiAlias { get; set; }

Property Value

Boolean

PolygonSeamRenderingMode

Gets or sets how polygon seam sealing is rendered.

public PolygonSeamRenderingMode PolygonSeamRenderingMode { get; set; }

Property Value

PolygonSeamRenderingMode

Remarks:

This option controls only the seam-sealing pass used to hide thin white gaps between adjacent polygons. It does not change the main image/vector/text anti-aliasing options.

Constructors

RenderingOptions()

Initializes a new instance of the RenderingOptions class.

public RenderingOptions()

RenderingOptions(Boolean, Boolean, Boolean)

Initializes a new instance of the RenderingOptions class.

public RenderingOptions(bool imageAntiAlias, bool vectorAntiAlias, bool textAntiAlias)

Parameters

imageAntiAlias Boolean
Whether anti-aliasing is enabled for image rendering.

vectorAntiAlias Boolean
Whether anti-aliasing is enabled for vector rendering.

textAntiAlias Boolean
Whether anti-aliasing is enabled for text rendering.

RenderingOptions(Boolean, Boolean, Boolean, PolygonSeamRenderingMode)

Initializes a new instance of the RenderingOptions class.

public RenderingOptions(bool imageAntiAlias, bool vectorAntiAlias, bool textAntiAlias, PolygonSeamRenderingMode polygonSeamRenderingMode)

Parameters

imageAntiAlias Boolean
Whether anti-aliasing is enabled for image rendering.

vectorAntiAlias Boolean
Whether anti-aliasing is enabled for vector rendering.

textAntiAlias Boolean
Whether anti-aliasing is enabled for text rendering.

polygonSeamRenderingMode PolygonSeamRenderingMode
How polygon seam sealing is applied.

Methods

FromDrawingQuality(DrawingQuality)

Creates rendering options from a DrawingQuality preset.

public static RenderingOptions FromDrawingQuality(DrawingQuality drawingQuality)

Parameters

drawingQuality DrawingQuality
The drawing-quality preset.

Returns

RenderingOptions
The matching rendering options.

CreateDefault()

Creates the baseline options used by SkiaGraphics when no external override is provided.

public static RenderingOptions CreateDefault()

Returns

RenderingOptions
The default rendering options.