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
SmoothingMode
public SmoothingMode SmoothingMode { get; set; }
Property Value
Transform
public Matrix Transform { get; set; }
Property Value
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
imageImagedestRectRectangleFsrcRectRectangleFgraphicsUnitGraphicsUnit
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit, float)
public void DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit graphicsUnit, float opacity)
Parameters
imageImagedestRectRectangleFsrcRectRectangleFgraphicsUnitGraphicsUnitopacityfloat
DrawImageUnscaled(Image, Point)
public void DrawImageUnscaled(Image image, Point location)
Parameters
DrawPath(Pen, GraphicsPath)
public void DrawPath(Pen pen, GraphicsPath path)
Parameters
penPenpathGraphicsPath
FillPath(Brush, GraphicsPath)
public void FillPath(Brush brush, GraphicsPath path)
Parameters
brushBrushpathGraphicsPath
FromGraphics(Graphics)
Creates a new ISvgRenderer from the specified Graphics.
public static ISvgRenderer FromGraphics(Graphics graphics)
Parameters
Returns
FromImage(Image)
Creates a new ISvgRenderer from the specified Image.
public static ISvgRenderer FromImage(Image image)
Parameters
imageImageImage from which to create the new ISvgRenderer.
Returns
FromNull()
public static ISvgRenderer FromNull()
Returns
GetBoundable()
public ISvgBoundable GetBoundable()
Returns
GetClip()
public Region GetClip()
Returns
PopBoundable()
public ISvgBoundable PopBoundable()
Returns
RotateTransform(float, MatrixOrder)
public void RotateTransform(float fAngle, MatrixOrder order = MatrixOrder.Append)
Parameters
fAnglefloatorderMatrixOrder
ScaleTransform(float, float, MatrixOrder)
public void ScaleTransform(float sx, float sy, MatrixOrder order = MatrixOrder.Append)
Parameters
sxfloatsyfloatorderMatrixOrder
SetBoundable(ISvgBoundable)
public void SetBoundable(ISvgBoundable boundable)
Parameters
boundableISvgBoundable
SetClip(Region, CombineMode)
public void SetClip(Region region, CombineMode combineMode = CombineMode.Replace)
Parameters
regionRegioncombineModeCombineMode
TranslateTransform(float, float, MatrixOrder)
public void TranslateTransform(float dx, float dy, MatrixOrder order = MatrixOrder.Append)
Parameters
dxfloatdyfloatorderMatrixOrder