System::Drawing::RectangleF::Inflate 方法

RectangleF::Inflate(const SizeF&) method

在保持矩形几何中心位置不变的情况下,增加当前对象表示的矩形的宽度和高度。宽度和高度在两个方向上分别按指定尺寸对象的宽度和高度值增加。

void System::Drawing::RectangleF::Inflate(const SizeF &size)
ParameterType描述
sizeconst SizeF&指定矩形宽度和高度增量的 SizeF 对象

另见

RectangleF::Inflate(float, float) method

在保持矩形几何中心位置不变的情况下,增加当前对象表示的矩形的宽度和高度。宽度和高度在两个方向上均按指定的量增加。

void System::Drawing::RectangleF::Inflate(float width, float height)
ParameterType描述
width单精度浮点数矩形宽度在两个方向上增加的量
height单精度浮点数矩形高度在两个方向上增加的量

另见

RectangleF::Inflate(const RectangleF&, float, float) method

在保持矩形几何中心位置不变的情况下,增加指定对象表示的矩形的宽度和高度。宽度和高度在两个方向上均按指定的量增加。

static RectangleF System::Drawing::RectangleF::Inflate(const RectangleF &rect, float x, float y)
ParameterType描述
rectconst RectangleF&要膨胀的矩形
x单精度浮点数矩形宽度在两个方向上增加的量
y单精度浮点数矩形高度在两个方向上增加的量

ReturnValue

表示放大矩形的 RectangleF 对象

另见