C# Класс OxyPlot.SvgRenderContext

The svg render context.
Наследование: OxyPlot.RenderContextBase, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Описание методов

Close() публичный Метод

Closes the svg writer.
public Close ( ) : void
Результат void

Complete() публичный Метод

Completes the svg element.
public Complete ( ) : void
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

DrawEllipse() публичный Метод

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.
Результат void

DrawLine() публичный Метод

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.
Результат void

DrawPolygon() публичный Метод

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.
Результат void

DrawRectangle() публичный Метод

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.
Результат void

DrawText() публичный Метод

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.
Результат void

Flush() публичный Метод

Flushes this instance.
public Flush ( ) : void
Результат void

MeasureText() публичный Метод

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.
Результат OxyPlot.OxySize

SvgRenderContext() публичный Метод

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.
Результат System