PixelFarm.Drawing.RectangleF.Union C# (CSharp) Method

Union() public static method

Union Shared Method
Produces a new RectangleF from the union of 2 existing RectangleFs.
public static Union ( RectangleF a, RectangleF b ) : RectangleF
a RectangleF
b RectangleF
return RectangleF
        public static RectangleF Union(RectangleF a, RectangleF b)
        {
            return FromLTRB(Math.Min(a.Left, b.Left),
                     Math.Min(a.Top, b.Top),
                     Math.Max(a.Right, b.Right),
                     Math.Max(a.Bottom, b.Bottom));
        }