C# Class Renderer.Wpf.WpfRenderer

Native Windows Presentation Foundation shape renderer.
Inheritance: Core2D.Renderer.ShapeRenderer
Afficher le fichier Open project: Core2D/Core2D

Méthodes publiques

Méthode Description
ClearCache ( bool isZooming ) : void
Create ( ) : ShapeRenderer

Creates a new WpfRenderer instance.

Draw ( object dc, XArc arc, double dx, double dy, ImmutableArray db, XRecord r ) : void
Draw ( object dc, XCubicBezier cubicBezier, double dx, double dy, ImmutableArray db, XRecord r ) : void
Draw ( object dc, XEllipse ellipse, double dx, double dy, ImmutableArray db, XRecord r ) : void
Draw ( object dc, XImage image, double dx, double dy, ImmutableArray db, XRecord r ) : void
Draw ( object dc, XLine line, double dx, double dy, ImmutableArray db, XRecord r ) : void
Draw ( object dc, XPath path, double dx, double dy, ImmutableArray db, XRecord r ) : void
Draw ( object dc, XQuadraticBezier quadraticBezier, double dx, double dy, ImmutableArray db, XRecord r ) : void
Draw ( object dc, XRectangle rectangle, double dx, double dy, ImmutableArray db, XRecord r ) : void
Draw ( object dc, XText text, double dx, double dy, ImmutableArray db, XRecord r ) : void
Fill ( object dc, double x, double y, double width, double height, ArgbColor color ) : void
WpfRenderer ( ) : System

Initializes a new instance of the WpfRenderer class.

Private Methods

Méthode Description
CreateBrush ( ArgbColor color ) : System.Windows.Media.Brush
CreatePen ( BaseStyle style, double thickness ) : System.Windows.Media.Pen
CreateRect ( XPoint tl, XPoint br, double dx, double dy ) : Rect
DrawEllipseInternal ( System.Windows.Media.DrawingContext dc, double half, System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, bool isStroked, bool isFilled, Point &center, double rx, double ry ) : void
DrawGridInternal ( System.Windows.Media.DrawingContext dc, double half, System.Windows.Media.Pen stroke, Rect &rect, double offsetX, double offsetY, double cellWidth, double cellHeight, bool isStroked ) : void
DrawLineArrowInternal ( System.Windows.Media.DrawingContext dc, double half, System.Windows.Media.Pen pen, System.Windows.Media.Brush brush, double x, double y, double angle, ArrowStyle style ) : Point
DrawLineArrowsInternal ( System.Windows.Media.DrawingContext dc, XLine line, ShapeStyle style, double halfStart, double halfEnd, double thicknessStart, double thicknessEnd, double dx, double dy, Point &pt1, Point &pt2 ) : void
DrawLineCurveInternal ( System.Windows.Media.DrawingContext dc, double half, System.Windows.Media.Pen pen, XLine line, Point &pt1, Point &pt2, double dx, double dy ) : void
DrawLineInternal ( System.Windows.Media.DrawingContext dc, double half, System.Windows.Media.Pen pen, bool isStroked, Point &p0, Point &p1 ) : void
DrawPathGeometryInternal ( System.Windows.Media.DrawingContext dc, double half, System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, bool isStroked, bool isFilled, System.Windows.Media.PathGeometry pg ) : void
DrawRectangleInternal ( System.Windows.Media.DrawingContext dc, double half, System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, bool isStroked, bool isFilled, Rect &rect ) : void
GetTextOrigin ( ShapeStyle style, Rect &rect, System.Windows.Media.FormattedText ft ) : Point
ToColor ( ArgbColor color ) : Color

Method Details

ClearCache() public méthode

public ClearCache ( bool isZooming ) : void
isZooming bool
Résultat void

Create() public static méthode

Creates a new WpfRenderer instance.
public static Create ( ) : ShapeRenderer
Résultat Core2D.Renderer.ShapeRenderer

Draw() public méthode

public Draw ( object dc, XArc arc, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
arc Core2D.Shapes.XArc
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

Draw() public méthode

public Draw ( object dc, XCubicBezier cubicBezier, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
cubicBezier Core2D.Shapes.XCubicBezier
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

Draw() public méthode

public Draw ( object dc, XEllipse ellipse, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
ellipse Core2D.Shapes.XEllipse
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

Draw() public méthode

public Draw ( object dc, XImage image, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
image Core2D.Shapes.XImage
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

Draw() public méthode

public Draw ( object dc, XLine line, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
line Core2D.Shapes.XLine
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

Draw() public méthode

public Draw ( object dc, XPath path, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
path Core2D.Shapes.XPath
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

Draw() public méthode

public Draw ( object dc, XQuadraticBezier quadraticBezier, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
quadraticBezier Core2D.Shapes.XQuadraticBezier
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

Draw() public méthode

public Draw ( object dc, XRectangle rectangle, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
rectangle Core2D.Shapes.XRectangle
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

Draw() public méthode

public Draw ( object dc, XText text, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
text Core2D.Shapes.XText
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

Fill() public méthode

public Fill ( object dc, double x, double y, double width, double height, ArgbColor color ) : void
dc object
x double
y double
width double
height double
color Core2D.Style.ArgbColor
Résultat void

WpfRenderer() public méthode

Initializes a new instance of the WpfRenderer class.
public WpfRenderer ( ) : System
Résultat System