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
image
ImagedestRect
RectangleFsrcRect
RectangleFgraphicsUnit
GraphicsUnit
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit, float)
public void DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit graphicsUnit, float opacity)
Parameters
image
ImagedestRect
RectangleFsrcRect
RectangleFgraphicsUnit
GraphicsUnitopacity
float
DrawImageUnscaled(Image, Point)
public void DrawImageUnscaled(Image image, Point location)
Parameters
DrawPath(Pen, GraphicsPath)
public void DrawPath(Pen pen, GraphicsPath path)
Parameters
pen
Penpath
GraphicsPath
FillPath(Brush, GraphicsPath)
public void FillPath(Brush brush, GraphicsPath path)
Parameters
brush
Brushpath
GraphicsPath
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
image
ImageImage 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
fAngle
floatorder
MatrixOrder
ScaleTransform(float, float, MatrixOrder)
public void ScaleTransform(float sx, float sy, MatrixOrder order = MatrixOrder.Append)
Parameters
sx
floatsy
floatorder
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
RegioncombineMode
CombineMode
TranslateTransform(float, float, MatrixOrder)
public void TranslateTransform(float dx, float dy, MatrixOrder order = MatrixOrder.Append)
Parameters
dx
floatdy
floatorder
MatrixOrder