Beispiel #1
0
        public void Draw(IDrawer drawer)
        {
            drawer.SelectPen(Format.Color, (int)Format.Width);
            SizeF size = new SizeF(2 * Radius, 2 * Radius);

            drawer.DrawEllipseArc(Centre, size);
        }
Beispiel #2
0
 public void Draw(IDrawer drawer)
 {
     drawer.DrawEllipseArc(new PointF(Center.X, Center.Y), new SizeF(Radius * 2, Radius * 2), 0, 360, 0);
 }
Beispiel #3
0
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Format.Color, Format.Width);
     drawer.DrawEllipseArc(Center, Size, startAngle, endAngle, Rotate);
 }
Beispiel #4
0
 public void Draw(IDrawer drawer)
 {
     drawer.DrawEllipseArc(Center, Size, rotate: RotateAngle);
 }
Beispiel #5
0
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Format.Color, (int)Format.Width);
     drawer.DrawEllipseArc(Centre, Axises, 0, 360, Rotate);
 }
Beispiel #6
0
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Format.Color, Format.Width);
     drawer.DrawEllipseArc(Center, Size);
 }
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Format.Color, (int)Format.Width);
     drawer.DrawEllipseArc(Center, Size, 0, 360, Degree);
 }
Beispiel #8
0
        /* public void TryParse(string[] args)
         * {
         *   float coordinate;
         *
         *   if (args.Length == 5)
         *   {
         *       if (float.TryParse(args[0], out coordinate))
         *       {
         *           Center.X = coordinate;
         *       }
         *       else
         *       {
         *           throw new Exception($"Координата X центра эллипса введена с ошибкой: {args[0]}");
         *       }
         *
         *       if (float.TryParse(args[1], out coordinate))
         *       {
         *           Center.Y = coordinate;
         *       }
         *
         *
         *       if (float.TryParse(args[2], out coordinate))
         *       {
         *           Size1 = coordinate;
         *       }
         *
         *       if (float.TryParse(args[3], out coordinate))
         *       {
         *           Size2 = coordinate;
         *       }
         *
         *       if (float.TryParse(args[4], out coordinate))
         *       {
         *           Rotate = coordinate;
         *       }
         *   }
         * }*/

        public void Draw(IDrawer drawer)
        {
            drawer.DrawEllipseArc(new PointF(Center.X, Center.Y), new SizeF(Size1, Size2), 0, 360, Rotate);
        }
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(format.Color, format.Width);
     drawer.DrawEllipseArc(center, sizes);
 }
Beispiel #10
0
 public void Draw(IDrawer drawer)
 {
     drawer.DrawEllipseArc(Center, Size);
 }
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(format.Color, format.Width);
     drawer.DrawEllipseArc(center, sizes, this.startAngle, this.endAngle, rotate);
 }