Ejemplo n.º 1
0
 private System.Drawing.RectangleF Circle(GraphicsModel.Point center, double radius)
 {
     return(new RectangleF(
                x: (float)(center.X - radius),
                y: (float)(center.Y - radius),
                width: (float)(radius * 2),
                height: (float)(radius * 2)));
 }
 private SKPoint Convert(GraphicsModel.Point pt)
 {
     return(new SKPoint((float)pt.X, (float)pt.Y));
 }
Ejemplo n.º 3
0
 public void FillCircle(GraphicsModel.Point center, double radius, GraphicsModel.Color color)
 {
     Brush.Color = Convert(color);
     Gfx.FillEllipse(Brush, Circle(center, radius));
 }
Ejemplo n.º 4
0
 public void DrawLine(GraphicsModel.Point pt1, GraphicsModel.Point pt2, double lineWidth, GraphicsModel.Color color)
 {
     Pen.Width = (float)lineWidth;
     Pen.Color = Convert(color);
     Gfx.DrawLine(Pen, Convert(pt1), Convert(pt2));
 }
Ejemplo n.º 5
0
 private System.Drawing.PointF Convert(GraphicsModel.Point pt)
 {
     return(new PointF((float)pt.X, (float)pt.Y));
 }