Ejemplo n.º 1
0
        public void Ellipse(Rectangle rectangle)
        {
            endOpenFigure();

            var rx = rectangle.Width / 2;
            var ry = rectangle.Height / 2;

            using (var geometry = new EllipseGeometry(_factory,
                                                      new Ellipse
            {
                Point = Import.Point(rectangle.X + rx, rectangle.Y + ry),
                RadiusX = rx.import(),
                RadiusY = ry.import()
            }
                                                      ))
            {
                geometry.Simplify(SimplificationOption, _sink);
            }
        }