public void EllipseThrow() { EllipseShape ls = new EllipseShape(); Point from = new Point (1,1); Point to = new Point (10,10); GraphicsPath p = ls.CreatePath(from,to); }
public void EllipseThrow() { EllipseShape ls = new EllipseShape(); Point from = new Point(1, 1); Point to = new Point(10, 10); GraphicsPath p = ls.CreatePath(from, to); }
public void CheckGraphicsPathBounds() { EllipseShape ls = new EllipseShape(); Point from = new Point(1,1); Size size = new Size (10,10); Rectangle rect = new Rectangle (from,size); GraphicsPath p = ls.CreatePath(rect); RectangleF r = p.GetBounds(); Assert.AreEqual(from.X,r.Left); Assert.AreEqual(from.Y,r.Top); Assert.AreEqual(r.Size.Width + from.X, r.Right); Assert.AreEqual(r.Size.Height + from.Y, r.Bottom); }
public void CheckGraphicsPathBounds() { EllipseShape ls = new EllipseShape(); Point from = new Point(1, 1); Size size = new Size(10, 10); Rectangle rect = new Rectangle(from, size); GraphicsPath p = ls.CreatePath(rect); RectangleF r = p.GetBounds(); Assert.AreEqual(from.X, r.Left); Assert.AreEqual(from.Y, r.Top); Assert.AreEqual(r.Size.Width + from.X, r.Right); Assert.AreEqual(r.Size.Height + from.Y, r.Bottom); }