Table of Contents

Class SvgRenderer

Namespace
Svg
Assembly
Svg.dll

Convenience wrapper around a graphics object

public sealed class SvgRenderer : ISvgRenderer, IDisposable, IGraphicsProvider
Inheritance
SvgRenderer
Implements
Inherited Members

Properties

DpiY

public float DpiY { get; }

Property Value

float

SmoothingMode

public SmoothingMode SmoothingMode { get; set; }

Property Value

SmoothingMode

Transform

public Matrix Transform { get; set; }

Property Value

Matrix

Methods

Dispose()

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

public void Dispose()

DrawImage(Image, RectangleF, RectangleF, GraphicsUnit)

public void DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit graphicsUnit)

Parameters

image Image
destRect RectangleF
srcRect RectangleF
graphicsUnit GraphicsUnit

DrawImage(Image, RectangleF, RectangleF, GraphicsUnit, float)

public void DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit graphicsUnit, float opacity)

Parameters

image Image
destRect RectangleF
srcRect RectangleF
graphicsUnit GraphicsUnit
opacity float

DrawImageUnscaled(Image, Point)

public void DrawImageUnscaled(Image image, Point location)

Parameters

image Image
location Point

DrawPath(Pen, GraphicsPath)

public void DrawPath(Pen pen, GraphicsPath path)

Parameters

pen Pen
path GraphicsPath

FillPath(Brush, GraphicsPath)

public void FillPath(Brush brush, GraphicsPath path)

Parameters

brush Brush
path GraphicsPath

FromGraphics(Graphics)

Creates a new ISvgRenderer from the specified Graphics.

public static ISvgRenderer FromGraphics(Graphics graphics)

Parameters

graphics Graphics

The Graphics to create the renderer from.

Returns

ISvgRenderer

FromImage(Image)

Creates a new ISvgRenderer from the specified Image.

public static ISvgRenderer FromImage(Image image)

Parameters

image Image

Image from which to create the new ISvgRenderer.

Returns

ISvgRenderer

FromNull()

public static ISvgRenderer FromNull()

Returns

ISvgRenderer

GetBoundable()

public ISvgBoundable GetBoundable()

Returns

ISvgBoundable

GetClip()

public Region GetClip()

Returns

Region

PopBoundable()

public ISvgBoundable PopBoundable()

Returns

ISvgBoundable

RotateTransform(float, MatrixOrder)

public void RotateTransform(float fAngle, MatrixOrder order = MatrixOrder.Append)

Parameters

fAngle float
order MatrixOrder

ScaleTransform(float, float, MatrixOrder)

public void ScaleTransform(float sx, float sy, MatrixOrder order = MatrixOrder.Append)

Parameters

sx float
sy float
order MatrixOrder

SetBoundable(ISvgBoundable)

public void SetBoundable(ISvgBoundable boundable)

Parameters

boundable ISvgBoundable

SetClip(Region, CombineMode)

public void SetClip(Region region, CombineMode combineMode = CombineMode.Replace)

Parameters

region Region
combineMode CombineMode

TranslateTransform(float, float, MatrixOrder)

public void TranslateTransform(float dx, float dy, MatrixOrder order = MatrixOrder.Append)

Parameters

dx float
dy float
order MatrixOrder