Region 类
Summary: Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inherited.
Module: aspose.imaging
Full Name: aspose.imaging.Region
Constructors
| Name | 描述 |
|---|---|
| Region() | 初始化一个新的 Region。 |
| Region(path) | 使用指定的 GraphicsPath 初始化一个新的 Region。 |
| Region(rect) | 使用指定的 RectangleF 结构初始化一个新的 Region。 |
| Region(rect) | 使用指定的 RectangleF 结构初始化一个新的 Region。 |
Methods
Constructor: Region()
Region()
初始化一个新的 Region。
Constructor: Region(path)
Region(path)
使用指定的 GraphicsPath 初始化一个新的 Region。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 定义新 Region 的 GraphicsPath。 |
Constructor: Region(rect)
Region(rect)
使用指定的 RectangleF 结构初始化一个新的 Region。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 定义新 Region 内部的 RectangleF 结构。 |
Constructor: Region(rect)
Region(rect)
使用指定的 RectangleF 结构初始化一个新的 Region。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 定义新 Region 内部的 RectangleF 结构。 |
Method: complement(path)
complement(path)
更新此 Region,使其包含指定的 GraphicsPath 中未与此 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 用于补充此 Region 的 GraphicsPath。 |
Method: complement(rect)
complement(rect)
更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 用于补充此 Region 的 RectangleF 结构。 |
Method: complement(rect)
complement(rect)
更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 用于补充此 Region 的 RectangleF 结构。 |
Method: complement(region)
complement(region)
更新此 Region,使其包含指定的 Region 中未与此 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 用于补充此 Region 对象的 Region 对象。 |
Method: complement_path(path)
complement_path(path)
更新此 Region,使其包含指定的 GraphicsPath 中未与此 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 用于补充此 Region 的 GraphicsPath。 |
Method: complement_rect(rect)
complement_rect(rect)
更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 用于补充此 Region 的 RectangleF 结构。 |
Method: complement_rect_f(rect)
complement_rect_f(rect)
更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 用于补充此 Region 的 RectangleF 结构。 |
Method: complement_rgn(region)
complement_rgn(region)
更新此 Region,使其包含指定的 Region 中未与此 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 用于补充此 Region 对象的 Region 对象。 |
Method: create_with_path(path) [static]
create_with_path(path)
使用指定的 GraphicsPath 初始化一个新的 Region。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 定义新 Region 的 GraphicsPath。 |
Returns
| Type | Description |
|---|---|
| Region |
Method: create_with_rect(rect) [static]
create_with_rect(rect)
使用指定的 RectangleF 结构初始化一个新的 Region。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 定义新 Region 内部的 RectangleF 结构。 |
Returns
| Type | Description |
|---|---|
| Region |
Method: create_with_rect_f(rect) [static]
create_with_rect_f(rect)
使用指定的 RectangleF 结构初始化一个新的 Region。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 定义新 Region 内部的 RectangleF 结构。 |
Returns
| Type | Description |
|---|---|
| Region |
Method: deep_clone()
deep_clone()
创建此 Region 的精确深拷贝。
Returns
| Type | Description |
|---|---|
| Region | 此方法创建的 Region。 |
Method: exclude(path)
exclude(path)
更新此 Region,使其仅包含其内部未与指定的 GraphicsPath 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 要从此 Region 中排除的 GraphicsPath。 |
Method: exclude(rect)
exclude(rect)
更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 要从此 Region 中排除的 RectangleF 结构。 |
Method: exclude(rect)
exclude(rect)
更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 要从此 Region 中排除的 RectangleF 结构。 |
Method: exclude(region)
exclude(region)
更新此 Region,使其仅包含其内部未与指定的 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 要从此 Region 中排除的 Region。 |
Method: exclude_path(path)
exclude_path(path)
更新此 Region,使其仅包含其内部未与指定的 GraphicsPath 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 要从此 Region 中排除的 GraphicsPath。 |
Method: exclude_rect(rect)
exclude_rect(rect)
更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 要从此 Region 中排除的 RectangleF 结构。 |
Method: exclude_rect_f(rect)
exclude_rect_f(rect)
更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 要从此 Region 中排除的 RectangleF 结构。 |
Method: exclude_rgn(region)
exclude_rgn(region)
更新此 Region,使其仅包含其内部未与指定的 Region 相交的部分。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 要从此 Region 中排除的 Region。 |
Method: intersect(path)
intersect(path)
将此 Region 更新为其自身与指定的 GraphicsPath 的交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 与此 Region 相交的 GraphicsPath。 |
Method: intersect(rect)
intersect(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 与此 Region 相交的 RectangleF 结构。 |
Method: intersect(rect)
intersect(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 与此 Region 相交的 RectangleF 结构。 |
Method: intersect(region)
intersect(region)
将此 Region 更新为其自身与指定的 Region 的交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 与此 Region 相交的 Region。 |
Method: intersect_path(path)
intersect_path(path)
将此 Region 更新为其自身与指定的 GraphicsPath 的交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 与此 Region 相交的 GraphicsPath。 |
Method: intersect_rect(rect)
intersect_rect(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 与此 Region 相交的 RectangleF 结构。 |
Method: intersect_rect_f(rect)
intersect_rect_f(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 与此 Region 相交的 RectangleF 结构。 |
Method: intersect_rgn(region)
intersect_rgn(region)
将此 Region 更新为其自身与指定的 Region 的交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 与此 Region 相交的 Region。 |
Method: is_empty(g)
is_empty(g)
测试此 Region 在指定绘图表面上是否具有空的内部。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| g | Graphics | 表示绘图表面的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 如果在应用与 g 关联的变换后,此 Region 的内部为空,则为 true;否则为 false。 |
Method: is_infinite(g)
is_infinite(g)
测试此 Region 在指定绘图表面上是否具有无限的内部。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| g | Graphics | 表示绘图表面的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 如果在应用与 g 关联的变换后,此 Region 的内部为无限,则为 true;否则为 false。 |
Method: is_visible(point)
is_visible(point)
测试指定的 PointF 结构是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| point | PointF | 要测试的 PointF 结构。 |
Returns
| Type | Description |
|---|---|
| bool | 当 point 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible(point)
is_visible(point)
测试指定的 PointF 结构是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| point | Point | 要测试的 PointF 结构。 |
Returns
| Type | Description |
|---|---|
| bool | 当 point 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible(point, g)
is_visible(point, g)
测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| point | PointF | 要测试的 PointF 结构。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当 point 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible(point, g)
is_visible(point, g)
测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| point | Point | 要测试的 PointF 结构。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当 point 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible(rect)
is_visible(rect)
测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 要测试的 RectangleF 结构。 |
Returns
| Type | Description |
|---|---|
| bool | 当 rect 的任何部分位于此 Region 中时为 true;否则为 false。 |
Method: is_visible(rect)
is_visible(rect)
测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 要测试的 RectangleF 结构。 |
Returns
| Type | Description |
|---|---|
| bool | 当 rect 的任何部分位于此 Region 中时为 true;否则为 false。 |
Method: is_visible(rect, g)
is_visible(rect, g)
测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 要测试的 RectangleF 结构。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当 rect 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible(rect, g)
is_visible(rect, g)
测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 要测试的 RectangleF 结构。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当 rect 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible(x, y)
is_visible(x, y)
测试指定的点是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | float | 要测试的点的 x 坐标。 |
| y | float | 要测试的点的 y 坐标。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定的点位于此 Region 中时为 True;否则为 false。 |
Method: is_visible(x, y, g)
is_visible(x, y, g)
测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | float | 要测试的点的 x 坐标。 |
| y | float | 要测试的点的 y 坐标。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定的点位于此 Region 中时为 True;否则为 false。 |
Method: is_visible(x, y, g)
is_visible(x, y, g)
测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | int | 要测试的点的 x 坐标。 |
| y | int | 要测试的点的 y 坐标。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定的点位于此 Region 中时为 True;否则为 false。 |
Method: is_visible(x, y, width, height)
is_visible(x, y, width, height)
测试指定矩形的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | float | 要测试的矩形左上角的 x 坐标。 |
| y | float | 要测试的矩形左上角的 y 坐标。 |
| width | float | 要测试的矩形的宽度。 |
| height | float | 要测试的矩形的高度。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定矩形的任何部分位于此 Region 对象中时为 true;否则为 false。 |
Method: is_visible(x, y, width, height)
is_visible(x, y, width, height)
测试指定矩形的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | int | 要测试的矩形左上角的 x 坐标。 |
| y | int | 要测试的矩形左上角的 y 坐标。 |
| width | int | 要测试的矩形的宽度。 |
| height | int | 要测试的矩形的高度。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定矩形的任何部分位于此 Region 对象中时为 true;否则为 false。 |
Method: is_visible(x, y, width, height, g)
is_visible(x, y, width, height, g)
测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | float | 要测试的矩形左上角的 x 坐标。 |
| y | float | 要测试的矩形左上角的 y 坐标。 |
| width | float | 要测试的矩形的宽度。 |
| height | float | 要测试的矩形的高度。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。 |
Method: is_visible(x, y, width, height, g)
is_visible(x, y, width, height, g)
测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | int | 要测试的矩形左上角的 x 坐标。 |
| y | int | 要测试的矩形左上角的 y 坐标。 |
| width | int | 要测试的矩形的宽度。 |
| height | int | 要测试的矩形的高度。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_f(x, y)
is_visible_f(x, y)
测试指定的点是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | float | 要测试的点的 x 坐标。 |
| y | float | 要测试的点的 y 坐标。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定的点位于此 Region 中时为 True;否则为 false。 |
Method: is_visible_point(point)
is_visible_point(point)
测试指定的 PointF 结构是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| point | Point | 要测试的 PointF 结构。 |
Returns
| Type | Description |
|---|---|
| bool | 当 point 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_point_f(point)
is_visible_point_f(point)
测试指定的 PointF 结构是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| point | PointF | 要测试的 PointF 结构。 |
Returns
| Type | Description |
|---|---|
| bool | 当 point 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_point_f_with_graphics(point, g)
is_visible_point_f_with_graphics(point, g)
测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| point | PointF | 要测试的 PointF 结构。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当 point 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_point_with_graphics(point, g)
is_visible_point_with_graphics(point, g)
测试在使用指定的 Graphics 绘制时,指定的 Point 结构是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| point | Point | 要测试的 Point 结构。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当 point 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_rect(rect)
is_visible_rect(rect)
测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 要测试的 RectangleF 结构。 |
Returns
| Type | Description |
|---|---|
| bool | 当 rect 的任何部分位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_rect_f(rect)
is_visible_rect_f(rect)
测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 要测试的 RectangleF 结构。 |
Returns
| Type | Description |
|---|---|
| bool | 当 rect 的任何部分位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_rect_f_with_graphics(rect, g)
is_visible_rect_f_with_graphics(rect, g)
测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 要测试的 RectangleF 结构。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当 rect 位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_rect_with_graphics(rect, g)
is_visible_rect_with_graphics(rect, g)
测试在使用指定的 Graphics 绘制时,指定的 Rectangle 结构的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 要测试的 Rectangle 结构。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当 rect 的任何部分位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_with_graphics(x, y, g)
is_visible_with_graphics(x, y, g)
测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | int | 要测试的点的 x 坐标。 |
| y | int | 要测试的点的 y 坐标。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定的点位于此 Region 中时为 True;否则为 false。 |
Method: is_visible_with_graphics_f(x, y, g)
is_visible_with_graphics_f(x, y, g)
测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | float | 要测试的点的 x 坐标。 |
| y | float | 要测试的点的 y 坐标。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定的点位于此 Region 中时为 True;否则为 false。 |
Method: is_visible_xywh(x, y, width, height)
is_visible_xywh(x, y, width, height)
测试指定矩形的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | int | 要测试的矩形左上角的 x 坐标。 |
| y | int | 要测试的矩形左上角的 y 坐标。 |
| width | int | 要测试的矩形的宽度。 |
| height | int | 要测试的矩形的高度。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定矩形的任何部分位于此 Region 对象中时为 true;否则为 false。 |
Method: is_visible_xywh_graphics(x, y, width, height, g)
is_visible_xywh_graphics(x, y, width, height, g)
测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | int | 要测试的矩形左上角的 x 坐标。 |
| y | int | 要测试的矩形左上角的 y 坐标。 |
| width | int | 要测试的矩形的宽度。 |
| height | int | 要测试的矩形的高度。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_xywh_graphics_f(x, y, width, height, g)
is_visible_xywh_graphics_f(x, y, width, height, g)
测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | float | 要测试的矩形左上角的 x 坐标。 |
| y | float | 要测试的矩形左上角的 y 坐标。 |
| width | float | 要测试的矩形的宽度。 |
| height | float | 要测试的矩形的高度。 |
| g | Graphics | 表示图形上下文的 Graphics。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。 |
Method: is_visible_xywhf(x, y, width, height)
is_visible_xywhf(x, y, width, height)
测试指定矩形的任何部分是否包含在此 Region 中。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| x | float | 要测试的矩形左上角的 x 坐标。 |
| y | float | 要测试的矩形左上角的 y 坐标。 |
| width | float | 要测试的矩形的宽度。 |
| height | float | 要测试的矩形的高度。 |
Returns
| Type | Description |
|---|---|
| bool | 当指定矩形的任何部分位于此 Region 对象中时为 true;否则为 false。 |
Method: transform(matrix)
transform(matrix)
Parameters:
| 参数 | Type | Description |
|---|---|---|
| matrix | Matrix | 用于变换此 Region 的 Matrix。 |
Method: translate(dx, dy)
translate(dx, dy)
按指定的量偏移此 Region 的坐标。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| dx | float | 此 Region 的水平偏移量。 |
| dy | float | 此 Region 的垂直偏移量。 |
Method: translate(dx, dy)
translate(dx, dy)
按指定的量偏移此 Region 的坐标。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| dx | int | 此 Region 的水平偏移量。 |
| dy | int | 此 Region 的垂直偏移量。 |
Method: translate_f(dx, dy)
translate_f(dx, dy)
按指定的量偏移此 Region 的坐标。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| dx | float | 此 Region 的水平偏移量。 |
| dy | float | 此 Region 的垂直偏移量。 |
Method: union(path)
union(path)
将此 Region 更新为其自身与指定的 GraphicsPath 的并集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 与此 Region 合并的 GraphicsPath。 |
Method: union(rect)
union(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的并集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 与此 Region 合并的 RectangleF 结构。 |
Method: union(rect)
union(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的并集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 与此 Region 合并的 RectangleF 结构。 |
Method: union(region)
union(region)
将此 Region 更新为其自身与指定的 Region 的并集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 与此 Region 合并的 Region。 |
Method: union_path(path)
union_path(path)
将此 Region 更新为其自身与指定的 GraphicsPath 的并集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 与此 Region 合并的 GraphicsPath。 |
Method: union_rect(rect)
union_rect(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的并集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 与此 Region 合并的 RectangleF 结构。 |
Method: union_rect_f(rect)
union_rect_f(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的并集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 与此 Region 合并的 RectangleF 结构。 |
Method: union_rgn(region)
union_rgn(region)
将此 Region 更新为其自身与指定的 Region 的并集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 与此 Region 合并的 Region。 |
Method: xor(path)
xor(path)
将此 Region 更新为其自身与指定的 GraphicsPath 的并集减去交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 与此 Region 进行异或的 GraphicsPath。 |
Method: xor(rect)
xor(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 与此 Region 进行异或的 RectangleF 结构。 |
Method: xor(rect)
xor(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 与此 Region 进行异或的 RectangleF 结构。 |
Method: xor(region)
xor(region)
将此 Region 更新为其自身与指定的 Region 的并集减去交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 与此 Region 进行异或的 Region。 |
Method: xor_path(path)
xor_path(path)
将此 Region 更新为其自身与指定的 GraphicsPath 的并集减去交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| path | GraphicsPath | 与此 Region 进行异或的 GraphicsPath。 |
Method: xor_rect(rect)
xor_rect(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | Rectangle | 与此 Region 进行异或的 RectangleF 结构。 |
Method: xor_rect_f(rect)
xor_rect_f(rect)
将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| rect | RectangleF | 与此 Region 进行异或的 RectangleF 结构。 |
Method: xor_rgn(region)
xor_rgn(region)
将此 Region 更新为其自身与指定的 Region 的并集减去交集。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| region | Region | 与此 Region 进行异或的 Region。 |