Esempio n. 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);
        }
Esempio n. 2
0
 public void Draw(IDrawer drawer)
 {
     drawer.DrawEllipseArc(new PointF(Center.X, Center.Y), new SizeF(Radius * 2, Radius * 2), 0, 360, 0);
 }
Esempio n. 3
0
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Format.Color, Format.Width);
     drawer.DrawEllipseArc(Center, Size, startAngle, endAngle, Rotate);
 }
Esempio n. 4
0
 public void Draw(IDrawer drawer)
 {
     drawer.DrawEllipseArc(Center, Size, rotate: RotateAngle);
 }
Esempio n. 5
0
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Format.Color, (int)Format.Width);
     drawer.DrawEllipseArc(Centre, Axises, 0, 360, Rotate);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }