Table of Contents

Class SvgDrawingContext

Namespace
Xui.Runtime.Software.Actual
Assembly
Xui.Runtime.Software.dll
public sealed class SvgDrawingContext : IContext, IMeasureContext, IStateContext, IPenContext, IPathDrawingContext, IPathBuilder, IGlyphPathBuilder, IPathDrawing, IPathClipping, IRectDrawingContext, ITextDrawingContext, ITextMeasureContext, IImageDrawingContext, ITransformContext, IDisposable
Inheritance
SvgDrawingContext
Implements
Inherited Members
Extension Methods

Constructors

SvgDrawingContext(Size, Stream, bool)

public SvgDrawingContext(Size canvasSize, Stream output, bool keepOpen = false)

Parameters

canvasSize Size
output Stream
keepOpen bool

SvgDrawingContext(Size, Stream, IEnumerable<Uri>, SvgFontResolver?, NumericFormat?, bool)

public SvgDrawingContext(Size canvasSize, Stream output, IEnumerable<Uri> fontUris, SvgDrawingContext.SvgFontResolver? resolver = null, SvgDrawingContext.NumericFormat? numericFormat = null, bool keepOpen = false)

Parameters

canvasSize Size
output Stream
fontUris IEnumerable<Uri>
resolver SvgDrawingContext.SvgFontResolver
numericFormat SvgDrawingContext.NumericFormat
keepOpen bool

SvgDrawingContext(Size, Stream, Catalog?, SvgFontResolver?, NumericFormat?, bool)

public SvgDrawingContext(Size canvasSize, Stream output, Catalog? catalog, SvgDrawingContext.SvgFontResolver? resolver = null, SvgDrawingContext.NumericFormat? numericFormat = null, bool keepOpen = false)

Parameters

canvasSize Size
output Stream
catalog Catalog
resolver SvgDrawingContext.SvgFontResolver
numericFormat SvgDrawingContext.NumericFormat
keepOpen bool

Properties

GlobalAlpha

Sets the global alpha value for all drawing operations. Range: 0.0 (fully transparent) to 1.0 (fully opaque).

public NFloat GlobalAlpha { get; set; }

Property Value

NFloat

LineCap

Sets the style of line caps used for strokes.

public LineCap LineCap { get; set; }

Property Value

LineCap

LineDashOffset

Sets the phase offset for the start of the dash pattern.

public NFloat LineDashOffset { get; set; }

Property Value

NFloat

LineJoin

Sets the style of line joins between segments.

public LineJoin LineJoin { get; set; }

Property Value

LineJoin

LineWidth

Sets the width of stroked lines, in user space units.

public NFloat LineWidth { get; set; }

Property Value

NFloat

MiterLimit

Sets the miter limit ratio for miter joins. If the ratio of miter length to line width exceeds this value, a bevel join is used instead.

public NFloat MiterLimit { get; set; }

Property Value

NFloat

TextAlign

Sets the horizontal alignment of the text relative to the given position.

public TextAlign TextAlign { get; set; }

Property Value

TextAlign

TextBaseline

Sets the vertical alignment of the text relative to the given baseline.

public TextBaseline TextBaseline { get; set; }

Property Value

TextBaseline

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()