public Point CenterWithin(Rectangle container) { return new Point(((container.Width - Width) >> 1) + container.X, ((container.Height - Height) >> 1) + container.Y); } }