示例#1
0
文件: Circle.cs 项目: Patapata3/Labs
        public void Draw(IDrawer drawer)
        {
            drawer.SelectPen(Format.Color, (int)Format.Width);
            SizeF size = new SizeF(2 * Radius, 2 * Radius);

            drawer.DrawEllipseArc(Centre, size);
        }
示例#2
0
 public void Draw(IDrawer drawer)
 {
     drawer.DrawEllipseArc(new PointF(Center.X, Center.Y), new SizeF(Radius * 2, Radius * 2), 0, 360, 0);
 }
示例#3
0
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Format.Color, Format.Width);
     drawer.DrawEllipseArc(Center, Size, startAngle, endAngle, Rotate);
 }
示例#4
0
文件: Ellipse.cs 项目: ymnsh/lab6
 public void Draw(IDrawer drawer)
 {
     drawer.DrawEllipseArc(Center, Size, rotate: RotateAngle);
 }
示例#5
0
文件: Ellipse.cs 项目: Patapata3/Labs
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Format.Color, (int)Format.Width);
     drawer.DrawEllipseArc(Centre, Axises, 0, 360, Rotate);
 }
示例#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);
 }
示例#8
0
文件: Ellipse.cs 项目: nzvcv/UrFU
        /* 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);
 }
示例#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);
 }