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); }
public static Rect Inflate(Rect rect, Size size) { return(Rect.Inflate(rect, size.Width, size.Height)); }