Accord.Imaging.Tools.Center C# (CSharp) Method

Center() public static method

Computes the center of a given rectangle.
public static Center ( this rectangle ) : Point
rectangle this
return Point
        public static Point Center(this Rectangle rectangle)
        {
            return new Point(
                (int)(rectangle.X + rectangle.Width / 2f),
                (int)(rectangle.Y + rectangle.Height / 2f));
        }