Ejemplo n.º 1
0
        public static Rect Inflate(Rect rect, double width, double height)
        {
            if (width < rect.Width * -2)
            {
                return(Rect.Empty);
            }

            if (height < rect.Height * -2)
            {
                return(Rect.Empty);
            }

            Rect result = rect;

            result.Inflate(width, height);
            return(result);
        }
Ejemplo n.º 2
0
 public static Rect Inflate(Rect rect, Size size)
 {
     return(Rect.Inflate(rect, size.Width, size.Height));
 }