Inflate() 공개 정적인 메소드

Increases the Size of the Rectangle by the specified values.
public static Inflate ( RectangleF rect, float width, float height ) : RectangleF
rect RectangleF The to modify.
width float The to increase the by.
height float The to increase the by.
리턴 RectangleF
예제 #1
0
 /// <summary>
 /// Increases the <see cref="Size"/> of the <see cref="Rectangle"/> by the specified values.
 /// </summary>
 /// <param name="rect">The <see cref="RectangleF"/> to modify.</param>
 /// <param name="width">The <see cref="SizeF.Width"/> to increase the <see cref="RectangleF"/> by.</param>
 /// <param name="height">The <see cref="SizeF.Height"/> to increase the <see cref="RectangleF"/> by.</param>
 /// <returns>A new <see cref="RectangleF"/> with the increased <see cref="Size"/>.</returns>
 public static RectangleF Inflate(RectangleF rect, float width, float height) => rect.Inflate(width, height);
예제 #2
0
 /// <summary>
 /// Increases the <see cref="Size"/> of the <see cref="Rectangle"/> by the specified values.
 /// </summary>
 /// <param name="rect">The <see cref="RectangleF"/> to modify.</param>
 /// <param name="width">The <see cref="SizeF.Width"/> to increase the <see cref="RectangleF"/> by.</param>
 /// <param name="height">The <see cref="SizeF.Height"/> to increase the <see cref="RectangleF"/> by.</param>
 /// <returns>A new <see cref="RectangleF"/> with the increased <see cref="Size"/>.</returns>
 public static RectangleF Inflate(RectangleF rect, float width, float height) => rect.Inflate(width, height);