Class SvgDrawingContext
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
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
canvasSizeSizeoutputStreamfontUrisIEnumerable<Uri>resolverSvgDrawingContext.SvgFontResolvernumericFormatSvgDrawingContext.NumericFormatkeepOpenbool
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
canvasSizeSizeoutputStreamcatalogCatalogresolverSvgDrawingContext.SvgFontResolvernumericFormatSvgDrawingContext.NumericFormatkeepOpenbool
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
LineCap
Sets the style of line caps used for strokes.
public LineCap LineCap { get; set; }
Property Value
LineDashOffset
Sets the phase offset for the start of the dash pattern.
public NFloat LineDashOffset { get; set; }
Property Value
LineJoin
Sets the style of line joins between segments.
public LineJoin LineJoin { get; set; }
Property Value
LineWidth
Sets the width of stroked lines, in user space units.
public NFloat LineWidth { get; set; }
Property Value
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
TextAlign
Sets the horizontal alignment of the text relative to the given position.
public TextAlign TextAlign { get; set; }
Property Value
TextBaseline
Sets the vertical alignment of the text relative to the given baseline.
public TextBaseline TextBaseline { get; set; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()