Experimental: this API is experimental and might be changed or removed in the future.

RectUtils.Inflate

Switch to Manual
public static Rect Inflate (Rect a, float left, float top, float right, float bottom);

Parameters

a原始矩形。
left将矩形向左放大的数量。
top将矩形向顶部放大的数量。
right将矩形向右放大的数量。
bottom将矩形向底部放大的数量。

Description

创建并返回特定矩形的放大副本。该副本按照指定数量放大。