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

Name描述
complement(path)更新此 Region,使其包含指定的 GraphicsPath 中未与此 Region 相交的部分。
complement(rect)更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。
complement(rect)更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。
complement(region)更新此 Region,使其包含指定的 Region 中未与此 Region 相交的部分。
complement_path(path)更新此 Region,使其包含指定的 GraphicsPath 中未与此 Region 相交的部分。
complement_rect(rect)更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。
complement_rect_f(rect)更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。
complement_rgn(region)更新此 Region,使其包含指定的 Region 中未与此 Region 相交的部分。
create_with_path(path)使用指定的 GraphicsPath 初始化一个新的 Region
create_with_rect(rect)使用指定的 RectangleF 结构初始化一个新的 Region
create_with_rect_f(rect)使用指定的 RectangleF 结构初始化一个新的 Region
deep_clone()创建此 Region 的精确深拷贝。
exclude(path)更新此 Region,使其仅包含其内部未与指定的 GraphicsPath 相交的部分。
exclude(rect)更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。
exclude(rect)更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。
exclude(region)更新此 Region,使其仅包含其内部未与指定的 Region 相交的部分。
exclude_path(path)更新此 Region,使其仅包含其内部未与指定的 GraphicsPath 相交的部分。
exclude_rect(rect)更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。
exclude_rect_f(rect)更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。
exclude_rgn(region)更新此 Region,使其仅包含其内部未与指定的 Region 相交的部分。
intersect(path)将此 Region 更新为其自身与指定的 GraphicsPath 的交集。
intersect(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的交集。
intersect(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的交集。
intersect(region)将此 Region 更新为其自身与指定的 Region 的交集。
intersect_path(path)将此 Region 更新为其自身与指定的 GraphicsPath 的交集。
intersect_rect(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的交集。
intersect_rect_f(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的交集。
intersect_rgn(region)将此 Region 更新为其自身与指定的 Region 的交集。
is_empty(g)测试此 Region 在指定绘图表面上是否具有空的内部。
is_infinite(g)测试此 Region 在指定绘图表面上是否具有无限的内部。
is_visible(point)测试指定的 PointF 结构是否包含在此 Region 中。
is_visible(point)测试指定的 PointF 结构是否包含在此 Region 中。
is_visible(point, g)测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。
is_visible(point, g)测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。
is_visible(rect)测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
is_visible(rect)测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
is_visible(rect, g)测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
is_visible(rect, g)测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
is_visible(x, y)测试指定的点是否包含在此 Region 中。
is_visible(x, y, g)测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。
is_visible(x, y, g)测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。
is_visible(x, y, width, height)测试指定矩形的任何部分是否包含在此 Region 中。
is_visible(x, y, width, height)测试指定矩形的任何部分是否包含在此 Region 中。
is_visible(x, y, width, height, g)测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。
is_visible(x, y, width, height, g)测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。
is_visible_f(x, y)测试指定的点是否包含在此 Region 中。
is_visible_point(point)测试指定的 PointF 结构是否包含在此 Region 中。
is_visible_point_f(point)测试指定的 PointF 结构是否包含在此 Region 中。
is_visible_point_f_with_graphics(point, g)测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。
is_visible_point_with_graphics(point, g)测试在使用指定的 Graphics 绘制时,指定的 Point 结构是否包含在此 Region 中。
is_visible_rect(rect)测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
is_visible_rect_f(rect)测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
is_visible_rect_f_with_graphics(rect, g)测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
is_visible_rect_with_graphics(rect, g)测试在使用指定的 Graphics 绘制时,指定的 Rectangle 结构的任何部分是否包含在此 Region 中。
is_visible_with_graphics(x, y, g)测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。
is_visible_with_graphics_f(x, y, g)测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。
is_visible_xywh(x, y, width, height)测试指定矩形的任何部分是否包含在此 Region 中。
is_visible_xywh_graphics(x, y, width, height, g)测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。
is_visible_xywh_graphics_f(x, y, width, height, g)测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。
is_visible_xywhf(x, y, width, height)测试指定矩形的任何部分是否包含在此 Region 中。
make_empty()将此 Region 初始化为空的内部。
make_infinite()将此 Region 对象初始化为无限内部。
transform(matrix)使用指定的 Matrix 对此 Region 进行变换。
translate(dx, dy)按指定的量偏移此 Region 的坐标。
translate(dx, dy)按指定的量偏移此 Region 的坐标。
translate_f(dx, dy)按指定的量偏移此 Region 的坐标。
union(path)将此 Region 更新为其自身与指定的 GraphicsPath 的并集。
union(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的并集。
union(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的并集。
union(region)将此 Region 更新为其自身与指定的 Region 的并集。
union_path(path)将此 Region 更新为其自身与指定的 GraphicsPath 的并集。
union_rect(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的并集。
union_rect_f(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的并集。
union_rgn(region)将此 Region 更新为其自身与指定的 Region 的并集。
xor(path)将此 Region 更新为其自身与指定的 GraphicsPath 的并集减去交集。
xor(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。
xor(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。
xor(region)将此 Region 更新为其自身与指定的 Region 的并集减去交集。
xor_path(path)将此 Region 更新为其自身与指定的 GraphicsPath 的并集减去交集。
xor_rect(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。
xor_rect_f(rect)将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。
xor_rgn(region)将此 Region 更新为其自身与指定的 Region 的并集减去交集。

Constructor: Region()

 Region() 

初始化一个新的 Region

Constructor: Region(path)

 Region(path) 

使用指定的 GraphicsPath 初始化一个新的 Region

Parameters:

参数TypeDescription
pathGraphicsPath定义新 RegionGraphicsPath

Constructor: Region(rect)

 Region(rect) 

使用指定的 RectangleF 结构初始化一个新的 Region

Parameters:

参数TypeDescription
rectRectangleF定义新 Region 内部的 RectangleF 结构。

Constructor: Region(rect)

 Region(rect) 

使用指定的 RectangleF 结构初始化一个新的 Region

Parameters:

参数TypeDescription
rectRectangle定义新 Region 内部的 RectangleF 结构。

Method: complement(path)

 complement(path) 

更新此 Region,使其包含指定的 GraphicsPath 中未与此 Region 相交的部分。

Parameters:

参数TypeDescription
pathGraphicsPath用于补充此 RegionGraphicsPath

Method: complement(rect)

 complement(rect) 

更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。

Parameters:

参数TypeDescription
rectRectangleF用于补充此 RegionRectangleF 结构。

Method: complement(rect)

 complement(rect) 

更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。

Parameters:

参数TypeDescription
rectRectangle用于补充此 RegionRectangleF 结构。

Method: complement(region)

 complement(region) 

更新此 Region,使其包含指定的 Region 中未与此 Region 相交的部分。

Parameters:

参数TypeDescription
regionRegion用于补充此 Region 对象的 Region 对象。

Method: complement_path(path)

 complement_path(path) 

更新此 Region,使其包含指定的 GraphicsPath 中未与此 Region 相交的部分。

Parameters:

参数TypeDescription
pathGraphicsPath用于补充此 RegionGraphicsPath

Method: complement_rect(rect)

 complement_rect(rect) 

更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。

Parameters:

参数TypeDescription
rectRectangle用于补充此 RegionRectangleF 结构。

Method: complement_rect_f(rect)

 complement_rect_f(rect) 

更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。

Parameters:

参数TypeDescription
rectRectangleF用于补充此 RegionRectangleF 结构。

Method: complement_rgn(region)

 complement_rgn(region) 

更新此 Region,使其包含指定的 Region 中未与此 Region 相交的部分。

Parameters:

参数TypeDescription
regionRegion用于补充此 Region 对象的 Region 对象。

Method: create_with_path(path) [static]

 create_with_path(path) 

使用指定的 GraphicsPath 初始化一个新的 Region

Parameters:

参数TypeDescription
pathGraphicsPath定义新 RegionGraphicsPath

Returns

TypeDescription
Region

Method: create_with_rect(rect) [static]

 create_with_rect(rect) 

使用指定的 RectangleF 结构初始化一个新的 Region

Parameters:

参数TypeDescription
rectRectangle定义新 Region 内部的 RectangleF 结构。

Returns

TypeDescription
Region

Method: create_with_rect_f(rect) [static]

 create_with_rect_f(rect) 

使用指定的 RectangleF 结构初始化一个新的 Region

Parameters:

参数TypeDescription
rectRectangleF定义新 Region 内部的 RectangleF 结构。

Returns

TypeDescription
Region

Method: deep_clone()

 deep_clone() 

创建此 Region 的精确深拷贝。

Returns

TypeDescription
Region此方法创建的 Region

Method: exclude(path)

 exclude(path) 

更新此 Region,使其仅包含其内部未与指定的 GraphicsPath 相交的部分。

Parameters:

参数TypeDescription
pathGraphicsPath要从此 Region 中排除的 GraphicsPath

Method: exclude(rect)

 exclude(rect) 

更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。

Parameters:

参数TypeDescription
rectRectangleF要从此 Region 中排除的 RectangleF 结构。

Method: exclude(rect)

 exclude(rect) 

更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。

Parameters:

参数TypeDescription
rectRectangle要从此 Region 中排除的 RectangleF 结构。

Method: exclude(region)

 exclude(region) 

更新此 Region,使其仅包含其内部未与指定的 Region 相交的部分。

Parameters:

参数TypeDescription
regionRegion要从此 Region 中排除的 Region

Method: exclude_path(path)

 exclude_path(path) 

更新此 Region,使其仅包含其内部未与指定的 GraphicsPath 相交的部分。

Parameters:

参数TypeDescription
pathGraphicsPath要从此 Region 中排除的 GraphicsPath

Method: exclude_rect(rect)

 exclude_rect(rect) 

更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。

Parameters:

参数TypeDescription
rectRectangle要从此 Region 中排除的 RectangleF 结构。

Method: exclude_rect_f(rect)

 exclude_rect_f(rect) 

更新此 Region,使其仅包含其内部未与指定的 RectangleF 结构相交的部分。

Parameters:

参数TypeDescription
rectRectangleF要从此 Region 中排除的 RectangleF 结构。

Method: exclude_rgn(region)

 exclude_rgn(region) 

更新此 Region,使其仅包含其内部未与指定的 Region 相交的部分。

Parameters:

参数TypeDescription
regionRegion要从此 Region 中排除的 Region

Method: intersect(path)

 intersect(path) 

将此 Region 更新为其自身与指定的 GraphicsPath 的交集。

Parameters:

参数TypeDescription
pathGraphicsPath与此 Region 相交的 GraphicsPath

Method: intersect(rect)

 intersect(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的交集。

Parameters:

参数TypeDescription
rectRectangleF与此 Region 相交的 RectangleF 结构。

Method: intersect(rect)

 intersect(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的交集。

Parameters:

参数TypeDescription
rectRectangle与此 Region 相交的 RectangleF 结构。

Method: intersect(region)

 intersect(region) 

将此 Region 更新为其自身与指定的 Region 的交集。

Parameters:

参数TypeDescription
regionRegion与此 Region 相交的 Region

Method: intersect_path(path)

 intersect_path(path) 

将此 Region 更新为其自身与指定的 GraphicsPath 的交集。

Parameters:

参数TypeDescription
pathGraphicsPath与此 Region 相交的 GraphicsPath

Method: intersect_rect(rect)

 intersect_rect(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的交集。

Parameters:

参数TypeDescription
rectRectangle与此 Region 相交的 RectangleF 结构。

Method: intersect_rect_f(rect)

 intersect_rect_f(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的交集。

Parameters:

参数TypeDescription
rectRectangleF与此 Region 相交的 RectangleF 结构。

Method: intersect_rgn(region)

 intersect_rgn(region) 

将此 Region 更新为其自身与指定的 Region 的交集。

Parameters:

参数TypeDescription
regionRegion与此 Region 相交的 Region

Method: is_empty(g)

 is_empty(g) 

测试此 Region 在指定绘图表面上是否具有空的内部。

Parameters:

参数TypeDescription
gGraphics表示绘图表面的 Graphics

Returns

TypeDescription
bool如果在应用与 g 关联的变换后,此 Region 的内部为空,则为 true;否则为 false。

Method: is_infinite(g)

 is_infinite(g) 

测试此 Region 在指定绘图表面上是否具有无限的内部。

Parameters:

参数TypeDescription
gGraphics表示绘图表面的 Graphics

Returns

TypeDescription
bool如果在应用与 g 关联的变换后,此 Region 的内部为无限,则为 true;否则为 false。

Method: is_visible(point)

 is_visible(point) 

测试指定的 PointF 结构是否包含在此 Region 中。

Parameters:

参数TypeDescription
pointPointF要测试的 PointF 结构。

Returns

TypeDescription
boolpoint 位于此 Region 中时为 true;否则为 false。

Method: is_visible(point)

 is_visible(point) 

测试指定的 PointF 结构是否包含在此 Region 中。

Parameters:

参数TypeDescription
pointPoint要测试的 PointF 结构。

Returns

TypeDescription
boolpoint 位于此 Region 中时为 true;否则为 false。

Method: is_visible(point, g)

 is_visible(point, g) 

测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。

Parameters:

参数TypeDescription
pointPointF要测试的 PointF 结构。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
boolpoint 位于此 Region 中时为 true;否则为 false。

Method: is_visible(point, g)

 is_visible(point, g) 

测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。

Parameters:

参数TypeDescription
pointPoint要测试的 PointF 结构。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
boolpoint 位于此 Region 中时为 true;否则为 false。

Method: is_visible(rect)

 is_visible(rect) 

测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
rectRectangleF要测试的 RectangleF 结构。

Returns

TypeDescription
boolrect 的任何部分位于此 Region 中时为 true;否则为 false。

Method: is_visible(rect)

 is_visible(rect) 

测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
rectRectangle要测试的 RectangleF 结构。

Returns

TypeDescription
boolrect 的任何部分位于此 Region 中时为 true;否则为 false。

Method: is_visible(rect, g)

 is_visible(rect, g) 

测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
rectRectangleF要测试的 RectangleF 结构。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
boolrect 位于此 Region 中时为 true;否则为 false。

Method: is_visible(rect, g)

 is_visible(rect, g) 

测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
rectRectangle要测试的 RectangleF 结构。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
boolrect 位于此 Region 中时为 true;否则为 false。

Method: is_visible(x, y)

 is_visible(x, y) 

测试指定的点是否包含在此 Region 中。

Parameters:

参数TypeDescription
xfloat要测试的点的 x 坐标。
yfloat要测试的点的 y 坐标。

Returns

TypeDescription
bool当指定的点位于此 Region 中时为 True;否则为 false。

Method: is_visible(x, y, g)

 is_visible(x, y, g) 

测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。

Parameters:

参数TypeDescription
xfloat要测试的点的 x 坐标。
yfloat要测试的点的 y 坐标。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
bool当指定的点位于此 Region 中时为 True;否则为 false。

Method: is_visible(x, y, g)

 is_visible(x, y, g) 

测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。

Parameters:

参数TypeDescription
xint要测试的点的 x 坐标。
yint要测试的点的 y 坐标。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
bool当指定的点位于此 Region 中时为 True;否则为 false。

Method: is_visible(x, y, width, height)

 is_visible(x, y, width, height) 

测试指定矩形的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
xfloat要测试的矩形左上角的 x 坐标。
yfloat要测试的矩形左上角的 y 坐标。
widthfloat要测试的矩形的宽度。
heightfloat要测试的矩形的高度。

Returns

TypeDescription
bool当指定矩形的任何部分位于此 Region 对象中时为 true;否则为 false。

Method: is_visible(x, y, width, height)

 is_visible(x, y, width, height) 

测试指定矩形的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
xint要测试的矩形左上角的 x 坐标。
yint要测试的矩形左上角的 y 坐标。
widthint要测试的矩形的宽度。
heightint要测试的矩形的高度。

Returns

TypeDescription
bool当指定矩形的任何部分位于此 Region 对象中时为 true;否则为 false。

Method: is_visible(x, y, width, height, g)

 is_visible(x, y, width, height, g) 

测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
xfloat要测试的矩形左上角的 x 坐标。
yfloat要测试的矩形左上角的 y 坐标。
widthfloat要测试的矩形的宽度。
heightfloat要测试的矩形的高度。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
bool当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。

Method: is_visible(x, y, width, height, g)

 is_visible(x, y, width, height, g) 

测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
xint要测试的矩形左上角的 x 坐标。
yint要测试的矩形左上角的 y 坐标。
widthint要测试的矩形的宽度。
heightint要测试的矩形的高度。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
bool当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。

Method: is_visible_f(x, y)

 is_visible_f(x, y) 

测试指定的点是否包含在此 Region 中。

Parameters:

参数TypeDescription
xfloat要测试的点的 x 坐标。
yfloat要测试的点的 y 坐标。

Returns

TypeDescription
bool当指定的点位于此 Region 中时为 True;否则为 false。

Method: is_visible_point(point)

 is_visible_point(point) 

测试指定的 PointF 结构是否包含在此 Region 中。

Parameters:

参数TypeDescription
pointPoint要测试的 PointF 结构。

Returns

TypeDescription
boolpoint 位于此 Region 中时为 true;否则为 false。

Method: is_visible_point_f(point)

 is_visible_point_f(point) 

测试指定的 PointF 结构是否包含在此 Region 中。

Parameters:

参数TypeDescription
pointPointF要测试的 PointF 结构。

Returns

TypeDescription
boolpoint 位于此 Region 中时为 true;否则为 false。

Method: is_visible_point_f_with_graphics(point, g)

 is_visible_point_f_with_graphics(point, g) 

测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。

Parameters:

参数TypeDescription
pointPointF要测试的 PointF 结构。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
boolpoint 位于此 Region 中时为 true;否则为 false。

Method: is_visible_point_with_graphics(point, g)

 is_visible_point_with_graphics(point, g) 

测试在使用指定的 Graphics 绘制时,指定的 Point 结构是否包含在此 Region 中。

Parameters:

参数TypeDescription
pointPoint要测试的 Point 结构。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
boolpoint 位于此 Region 中时为 true;否则为 false。

Method: is_visible_rect(rect)

 is_visible_rect(rect) 

测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
rectRectangle要测试的 RectangleF 结构。

Returns

TypeDescription
boolrect 的任何部分位于此 Region 中时为 true;否则为 false。

Method: is_visible_rect_f(rect)

 is_visible_rect_f(rect) 

测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
rectRectangleF要测试的 RectangleF 结构。

Returns

TypeDescription
boolrect 的任何部分位于此 Region 中时为 true;否则为 false。

Method: is_visible_rect_f_with_graphics(rect, g)

 is_visible_rect_f_with_graphics(rect, g) 

测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
rectRectangleF要测试的 RectangleF 结构。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
boolrect 位于此 Region 中时为 true;否则为 false。

Method: is_visible_rect_with_graphics(rect, g)

 is_visible_rect_with_graphics(rect, g) 

测试在使用指定的 Graphics 绘制时,指定的 Rectangle 结构的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
rectRectangle要测试的 Rectangle 结构。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
boolrect 的任何部分位于此 Region 中时为 true;否则为 false。

Method: is_visible_with_graphics(x, y, g)

 is_visible_with_graphics(x, y, g) 

测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。

Parameters:

参数TypeDescription
xint要测试的点的 x 坐标。
yint要测试的点的 y 坐标。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
bool当指定的点位于此 Region 中时为 True;否则为 false。

Method: is_visible_with_graphics_f(x, y, g)

 is_visible_with_graphics_f(x, y, g) 

测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。

Parameters:

参数TypeDescription
xfloat要测试的点的 x 坐标。
yfloat要测试的点的 y 坐标。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
bool当指定的点位于此 Region 中时为 True;否则为 false。

Method: is_visible_xywh(x, y, width, height)

 is_visible_xywh(x, y, width, height) 

测试指定矩形的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
xint要测试的矩形左上角的 x 坐标。
yint要测试的矩形左上角的 y 坐标。
widthint要测试的矩形的宽度。
heightint要测试的矩形的高度。

Returns

TypeDescription
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:

参数TypeDescription
xint要测试的矩形左上角的 x 坐标。
yint要测试的矩形左上角的 y 坐标。
widthint要测试的矩形的宽度。
heightint要测试的矩形的高度。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
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:

参数TypeDescription
xfloat要测试的矩形左上角的 x 坐标。
yfloat要测试的矩形左上角的 y 坐标。
widthfloat要测试的矩形的宽度。
heightfloat要测试的矩形的高度。
gGraphics表示图形上下文的 Graphics

Returns

TypeDescription
bool当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。

Method: is_visible_xywhf(x, y, width, height)

 is_visible_xywhf(x, y, width, height) 

测试指定矩形的任何部分是否包含在此 Region 中。

Parameters:

参数TypeDescription
xfloat要测试的矩形左上角的 x 坐标。
yfloat要测试的矩形左上角的 y 坐标。
widthfloat要测试的矩形的宽度。
heightfloat要测试的矩形的高度。

Returns

TypeDescription
bool当指定矩形的任何部分位于此 Region 对象中时为 true;否则为 false。

Method: transform(matrix)

 transform(matrix) 

使用指定的 Matrix 对此 Region 进行变换。

Parameters:

参数TypeDescription
matrixMatrix用于变换此 RegionMatrix

Method: translate(dx, dy)

 translate(dx, dy) 

按指定的量偏移此 Region 的坐标。

Parameters:

参数TypeDescription
dxfloatRegion 的水平偏移量。
dyfloatRegion 的垂直偏移量。

Method: translate(dx, dy)

 translate(dx, dy) 

按指定的量偏移此 Region 的坐标。

Parameters:

参数TypeDescription
dxintRegion 的水平偏移量。
dyintRegion 的垂直偏移量。

Method: translate_f(dx, dy)

 translate_f(dx, dy) 

按指定的量偏移此 Region 的坐标。

Parameters:

参数TypeDescription
dxfloatRegion 的水平偏移量。
dyfloatRegion 的垂直偏移量。

Method: union(path)

 union(path) 

将此 Region 更新为其自身与指定的 GraphicsPath 的并集。

Parameters:

参数TypeDescription
pathGraphicsPath与此 Region 合并的 GraphicsPath

Method: union(rect)

 union(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的并集。

Parameters:

参数TypeDescription
rectRectangleF与此 Region 合并的 RectangleF 结构。

Method: union(rect)

 union(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的并集。

Parameters:

参数TypeDescription
rectRectangle与此 Region 合并的 RectangleF 结构。

Method: union(region)

 union(region) 

将此 Region 更新为其自身与指定的 Region 的并集。

Parameters:

参数TypeDescription
regionRegion与此 Region 合并的 Region

Method: union_path(path)

 union_path(path) 

将此 Region 更新为其自身与指定的 GraphicsPath 的并集。

Parameters:

参数TypeDescription
pathGraphicsPath与此 Region 合并的 GraphicsPath

Method: union_rect(rect)

 union_rect(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的并集。

Parameters:

参数TypeDescription
rectRectangle与此 Region 合并的 RectangleF 结构。

Method: union_rect_f(rect)

 union_rect_f(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的并集。

Parameters:

参数TypeDescription
rectRectangleF与此 Region 合并的 RectangleF 结构。

Method: union_rgn(region)

 union_rgn(region) 

将此 Region 更新为其自身与指定的 Region 的并集。

Parameters:

参数TypeDescription
regionRegion与此 Region 合并的 Region

Method: xor(path)

 xor(path) 

将此 Region 更新为其自身与指定的 GraphicsPath 的并集减去交集。

Parameters:

参数TypeDescription
pathGraphicsPath与此 Region 进行异或的 GraphicsPath

Method: xor(rect)

 xor(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。

Parameters:

参数TypeDescription
rectRectangleF与此 Region 进行异或的 RectangleF 结构。

Method: xor(rect)

 xor(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。

Parameters:

参数TypeDescription
rectRectangle与此 Region 进行异或的 RectangleF 结构。

Method: xor(region)

 xor(region) 

将此 Region 更新为其自身与指定的 Region 的并集减去交集。

Parameters:

参数TypeDescription
regionRegion与此 Region 进行异或的 Region

Method: xor_path(path)

 xor_path(path) 

将此 Region 更新为其自身与指定的 GraphicsPath 的并集减去交集。

Parameters:

参数TypeDescription
pathGraphicsPath与此 Region 进行异或的 GraphicsPath

Method: xor_rect(rect)

 xor_rect(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。

Parameters:

参数TypeDescription
rectRectangle与此 Region 进行异或的 RectangleF 结构。

Method: xor_rect_f(rect)

 xor_rect_f(rect) 

将此 Region 更新为其自身与指定的 RectangleF 结构的并集减去交集。

Parameters:

参数TypeDescription
rectRectangleF与此 Region 进行异或的 RectangleF 结构。

Method: xor_rgn(region)

 xor_rgn(region) 

将此 Region 更新为其自身与指定的 Region 的并集减去交集。

Parameters:

参数TypeDescription
regionRegion与此 Region 进行异或的 Region