C# Class OxyPlot.SvgRenderContext

The svg render context.
Inheritance: OxyPlot.RenderContextBase, IDisposable
Afficher le fichier Open project: GNOME/longomatch Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void

Closes the svg writer.

Complete ( ) : void

Completes the svg element.

Dispose ( ) : void

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

DrawEllipse ( OxyPlot.OxyRect rect, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness ) : void

Draws an ellipse.

DrawLine ( IList points, OxyPlot.OxyColor stroke, double thickness, double dashArray, OxyPenLineJoin lineJoin, bool aliased ) : void

Draws the polyline from the specified points.

DrawPolygon ( IList points, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness, double dashArray, OxyPenLineJoin lineJoin, bool aliased ) : void

Draws the polygon from the specified points. The polygon can have stroke and/or fill.

DrawRectangle ( OxyPlot.OxyRect rect, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness ) : void

Draws the rectangle.

DrawText ( OxyPlot.ScreenPoint p, string text, OxyPlot.OxyColor c, string fontFamily, double fontSize, double fontWeight, double rotate, HorizontalAlignment halign, VerticalAlignment valign, OxyPlot.OxySize maxSize ) : void

Draws the text.

Flush ( ) : void

Flushes this instance.

MeasureText ( string text, string fontFamily, double fontSize, double fontWeight ) : OxyPlot.OxySize

Measures the text.

SvgRenderContext ( Stream s, double width, double height, bool isDocument, ITextMeasurer textMeasurer, OxyPlot.OxyColor background ) : System

Initializes a new instance of the SvgRenderContext class.

Private Methods

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Method Details

Close() public méthode

Closes the svg writer.
public Close ( ) : void
Résultat void

Complete() public méthode

Completes the svg element.
public Complete ( ) : void
Résultat void

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

DrawEllipse() public méthode

Draws an ellipse.
public DrawEllipse ( OxyPlot.OxyRect rect, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness ) : void
rect OxyPlot.OxyRect The rectangle.
fill OxyPlot.OxyColor The fill color.
stroke OxyPlot.OxyColor The stroke color.
thickness double The thickness.
Résultat void

DrawLine() public méthode

Draws the polyline from the specified points.
public DrawLine ( IList points, OxyPlot.OxyColor stroke, double thickness, double dashArray, OxyPenLineJoin lineJoin, bool aliased ) : void
points IList The points.
stroke OxyPlot.OxyColor The stroke color.
thickness double The stroke thickness.
dashArray double The dash array.
lineJoin OxyPenLineJoin The line join type.
aliased bool if set to true the shape will be aliased.
Résultat void

DrawPolygon() public méthode

Draws the polygon from the specified points. The polygon can have stroke and/or fill.
public DrawPolygon ( IList points, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness, double dashArray, OxyPenLineJoin lineJoin, bool aliased ) : void
points IList The points.
fill OxyPlot.OxyColor The fill color.
stroke OxyPlot.OxyColor The stroke color.
thickness double The stroke thickness.
dashArray double The dash array.
lineJoin OxyPenLineJoin The line join type.
aliased bool if set to true the shape will be aliased.
Résultat void

DrawRectangle() public méthode

Draws the rectangle.
public DrawRectangle ( OxyPlot.OxyRect rect, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness ) : void
rect OxyPlot.OxyRect The rectangle.
fill OxyPlot.OxyColor The fill color.
stroke OxyPlot.OxyColor The stroke color.
thickness double The stroke thickness.
Résultat void

DrawText() public méthode

Draws the text.
public DrawText ( OxyPlot.ScreenPoint p, string text, OxyPlot.OxyColor c, string fontFamily, double fontSize, double fontWeight, double rotate, HorizontalAlignment halign, VerticalAlignment valign, OxyPlot.OxySize maxSize ) : void
p OxyPlot.ScreenPoint The p.
text string The text.
c OxyPlot.OxyColor The c.
fontFamily string The font family.
fontSize double Size of the font.
fontWeight double The font weight.
rotate double The rotate.
halign HorizontalAlignment The horizontal alignment.
valign VerticalAlignment The vertical alignment.
maxSize OxyPlot.OxySize Size of the max.
Résultat void

Flush() public méthode

Flushes this instance.
public Flush ( ) : void
Résultat void

MeasureText() public méthode

Measures the text.
public MeasureText ( string text, string fontFamily, double fontSize, double fontWeight ) : OxyPlot.OxySize
text string The text.
fontFamily string The font family.
fontSize double Size of the font.
fontWeight double The font weight.
Résultat OxyPlot.OxySize

SvgRenderContext() public méthode

Initializes a new instance of the SvgRenderContext class.
public SvgRenderContext ( Stream s, double width, double height, bool isDocument, ITextMeasurer textMeasurer, OxyPlot.OxyColor background ) : System
s Stream The s.
width double The width.
height double The height.
isDocument bool Create an SVG document if set to true.
textMeasurer ITextMeasurer The text measurer.
background OxyPlot.OxyColor The background.
Résultat System