SvgRenderingContext Class

A rendering context for SVG output.
Hierarchy
SystemObject
  WebSupergoo.WordGlue4.RenderingSvgRenderingContext

 

Namespace:  WebSupergoo.WordGlue4.Rendering
Assembly:  WordGlue4 (in WordGlue4.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
public class SvgRenderingContext : IRenderingContext

The SvgRenderingContext type exposes the following members.

Constructors
  Name Description
Public method SvgRenderingContext
Create an SVG rendering context.
Top
Properties
  Name Description
Public property AddFrameIDs
Whether to add comments indicating Frame ID information to the SVG output.
Top
Methods
  Name Description
Public method DrawEllipse
Draw an ellipse using a specific Pen and Brush.
Public method DrawImage
Draw a raster image into a particular rectangle.
Public method DrawLine
Draw a line using a specific Pen.
Public method DrawPath
Draw a path using a specific Pen and Brush.
Public method DrawRectangle
Draw a rectangle using a specific Pen and Brush.
Public method DrawText
Draw text from a TextRun at a specific Point.
Public method FrameEnd
Lets you know when a frame has just been rendered. You can use this for linking semantic information with drawing instructions.
Public method FrameStart
Lets you know when a frame is about to be rendered. You can use this for linking semantic information with drawing instructions.
Public method PopClip
Pop the clip state, restoring to the last clip rect.
Public method PushClip
Push the clip state then assign a new clip rect.
Public method Save(String)
Save the SVG content to file. If image handing has been specified as relative files then these will be saved in a folder the same name as the file.
Public method Save(StringBuilder, String)
Save the SVG content to a StringBuilder. If image handing has been specified as relative files then these will be saved too. For relative files a path to a dummy SVG output file is required.
Top
See Also