Class Region

Class Region

名称: Aspose.Imaging 收藏: Aspose.Imaging.dll (25.4.0)

描述了由直角和路径组成的图形形状的内部,这种类不能继承。

[JsonObject(MemberSerialization.OptIn)]
public sealed class Region

Inheritance

object Region

继承人

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

Region()

创建一个新的 Aspose.Imaging.Region。

public Region()

Region(直角)

从指定的 Aspose.Imaging.RectangleF 结构开始一个新的 Aspose.Imaging.Region。

public Region(RectangleF rect)

Parameters

rect RectangleF

一个 Aspose.Imaging.RectangleF 结构,定义了新 Aspose.Imaging.Region 的内部。

Region(Rectangle)

从指定的 Aspose.Imaging.Rectangle 结构开始一个新的 Aspose.Imaging.Region。

public Region(Rectangle rect)

Parameters

rect Rectangle

一个 Aspose.Imaging.Rectangle 结构,定义新 Aspose.Imaging.Region 的内部。

Region(GraphicsPath)

启动一个新的 Aspose.Imaging.Region 与指定的 Aspose.Imaging.GraphicsPath。

public Region(GraphicsPath path)

Parameters

path GraphicsPath

一个 Aspose.Imaging.GraphicsPath 定义了新的 Aspose.Imaging.Region。

Exceptions

ArgumentNullException

path’ is null.

Methods

Complement(直角)

更新此 Aspose.Imaging.Region 以包含指定的 Aspose.Imaging.RectangleF 结构的部分,不与此 Aspose.Imaging.Region 交叉。

public void Complement(RectangleF rect)

Parameters

rect RectangleF

Aspose.Imaging.RectangleF 结构以补充这个 Aspose.Imaging.Region。

Complement(Rectangle)

更新此 Aspose.Imaging.Region 以包含指定的 Aspose.Imaging.Rectangle 结构的部分,不与此 Aspose.Imaging.Region 交叉。

public void Complement(Rectangle rect)

Parameters

rect Rectangle

Aspose.Imaging.Rectangle 结构,以补充这个 Aspose.Imaging.Region。

Complement(GraphicsPath)

更新此 Aspose.Imaging.Region 以包含指定的 Aspose.Imaging.GraphicsPath 的部分,不与此 Aspose.Imaging.Region 交叉。

public void Complement(GraphicsPath path)

Parameters

path GraphicsPath

Aspose.Imaging.GraphicsPath 以补充这个 Aspose.Imaging.Region。

Exceptions

ArgumentNullException

path’ isnull.

Complement(Region)

更新此 Aspose.Imaging.Region 以包含与此 Aspose.Imaging.Region 不交叉的指定的 Aspose.Imaging.Region 的部分。

public void Complement(Region region)

Parameters

region Region

Aspose.Imaging.Region 反对补充这个 Aspose.Imaging.Region 对象。

Exceptions

ArgumentNullException

region’ isnull.

DeepClone()

创建这个 Aspose.Imaging.Region 的准确深副本。

public Region DeepClone()

Returns

Region

Aspose.Imaging.Region 这个方法创造的区域。

Equals(对象)

检查对象是否平等。

public override bool Equals(object obj)

Parameters

obj object

其它对象。

Returns

bool

平等比较结果。

Equals(区域,图形)

测试指定的 Aspose.Imaging.Region 是否与指定的绘图表面上的 Aspose.Imaging.Region 相同。

public bool Equals(Region region, Graphics g)

Parameters

region Region

Aspose.Imaging.Region 要测试。

g Graphics

A Aspose.Imaging.Graphics 代表绘画表面。

Returns

bool

如果区域内部与区域内部相同,则适用与 g’ 参数相关的转换;否则,则是虚假的。

Exceptions

ArgumentNullException

g ‘or region’ is null.

Exclude(直角)

更新此 Aspose.Imaging.Region 只包含与指定的 Aspose.Imaging.RectangleF 结构不交叉的内部部分。

public void Exclude(RectangleF rect)

Parameters

rect RectangleF

该 Aspose.Imaging.RectangleF 结构将被此 Aspose.Imaging.Region 排除。

Exclude(Rectangle)

更新此 Aspose.Imaging.Region 只包含与指定的 Aspose.Imaging.Rectangle 结构不交叉的内部部分。

public void Exclude(Rectangle rect)

Parameters

rect Rectangle

该 Aspose.Imaging.Rectangle 结构将被此 Aspose.Imaging.Region 排除。

Exclude(GraphicsPath)

更新此 Aspose.Imaging.Region 只包含与指定的 Aspose.Imaging.GraphicsPath 不交叉的内部部分。

public void Exclude(GraphicsPath path)

Parameters

path GraphicsPath

该 Aspose.Imaging.GraphicsPath 从这个 Aspose.Imaging.Region 排除。

Exceptions

ArgumentNullException

path’ is null.

Exclude(Region)

更新此 Aspose.Imaging.Region 只包含与所指定的 Aspose.Imaging.Region 不交叉的内部部分。

public void Exclude(Region region)

Parameters

region Region

该 Aspose.Imaging.Region 从这个 Aspose.Imaging.Region 排除。

Exceptions

ArgumentNullException

region’ is null.

GetHashCode()

获取当前对象的哈希代码。

public override int GetHashCode()

Returns

int

哈希代码。

Intersect(直角)

更新此 Aspose.Imaging.Region 到它的交叉点与指定的 Aspose.Imaging.RectangleF 结构。

public void Intersect(RectangleF rect)

Parameters

rect RectangleF

Aspose.Imaging.RectangleF 结构与这个 Aspose.Imaging.Region 交叉。

Intersect(Rectangle)

更新此 Aspose.Imaging.Region 到它的交叉点与指定的 Aspose.Imaging.Rectangle 结构。

public void Intersect(Rectangle rect)

Parameters

rect Rectangle

Aspose.Imaging.Rectangle 结构与这个 Aspose.Imaging.Region 交叉。

Intersect(GraphicsPath)

将此 Aspose.Imaging.Region 更新到与指定的 Aspose.Imaging.GraphicsPath 交叉点。

public void Intersect(GraphicsPath path)

Parameters

path GraphicsPath

该 Aspose.Imaging.GraphicsPath 与这个 Aspose.Imaging.Region 交叉。

Intersect(Region)

将此 Aspose.Imaging.Region 更新到与所指定的 Aspose.Imaging.Region 的交叉点。

public void Intersect(Region region)

Parameters

region Region

该 Aspose.Imaging.Region 与此 Aspose.Imaging.Region 交叉。

IsEmpty(Graphics)

检查这个 Aspose.Imaging.Region 是否在指定的绘画表面上有一个空白的室内。

public bool IsEmpty(Graphics g)

Parameters

g Graphics

A Aspose.Imaging.Graphics 代表绘画表面。

Returns

bool

是真的,如果这个 Aspose.Imaging.Region 的内部是空的,当与 g’ 相关的转换应用时;否则,假。

Exceptions

ArgumentNullException

g’ is null.

IsInfinite(Graphics)

测试这个 Aspose.Imaging.Region 是否在指定的绘画表面上有无限的内部。

public bool IsInfinite(Graphics g)

Parameters

g Graphics

A Aspose.Imaging.Graphics 代表绘画表面。

Returns

bool

是真的,如果这个 Aspose.Imaging.Region 的内部是无限的,当与 g’ 相关的转换应用时;否则,假。

Exceptions

ArgumentNullException

g’ is null.

IsVisible(航海,航海)

测试是否指定的点在这个 Aspose.Imaging.Region 中。

public bool IsVisible(float x, float y)

Parameters

x float

测试点的 x 协调。

y float

测试点的 y 协调。

Returns

bool

当指定的点在本 Aspose.Imaging.Region 中包含时是真实的;否则,是虚假的。

IsVisible(点数)

测试所指定的 Aspose.Imaging.PointF 结构是否包含在本 Aspose.Imaging.Region 中。

public bool IsVisible(PointF point)

Parameters

point PointF

测试的 Aspose.Imaging.PointF 结构。

Returns

bool

point’ 包含在此 Aspose.Imaging.Region 中时;否则,虚假。

IsVisible(浮动,浮动,图形)

测试指定的点是否包含在这个 Aspose.Imaging.Region 时使用指定的 Aspose.Imaging.Graphics。

public bool IsVisible(float x, float y, Graphics g)

Parameters

x float

测试点的 x 协调。

y float

测试点的 y 协调。

g Graphics

一个 Aspose.Imaging.Graphics 代表一个图形背景。

Returns

bool

当指定的点在本 Aspose.Imaging.Region 中包含时是真实的;否则,是虚假的。

IsVisible(PointF, 图形)

测试所指定的 Aspose.Imaging.PointF 结构是否包含在本 Aspose.Imaging.Region 中,当使用所指定的 Aspose.Imaging.Graphics 绘制时。

public bool IsVisible(PointF point, Graphics g)

Parameters

point PointF

测试的 Aspose.Imaging.PointF 结构。

g Graphics

一个 Aspose.Imaging.Graphics 代表一个图形背景。

Returns

bool

point’ 包含在此 Aspose.Imaging.Region 中时;否则,虚假。

IsVisible(航海、航海、航海、航海)

测试指定直角的任何部分是否包含在本 Aspose.Imaging.Region 中。

public bool IsVisible(float x, float y, float width, float height)

Parameters

x float

对直角的左上角的X协调进行测试。

y float

对直角的左上角的y协调进行测试。

width float

直角的宽度进行测试。

height float

直角的高度要测试。

Returns

bool

当指定的直角的任何部分都包含在本 Aspose.Imaging.Region 对象中;否则,虚假。

IsVisible(直角)

测试所指定的 Aspose.Imaging.RectangleF 结构中的任何部分是否包含在本 Aspose.Imaging.Region 中。

public bool IsVisible(RectangleF rect)

Parameters

rect RectangleF

Aspose.Imaging.RectangleF 结构进行测试。

Returns

bool

当任何部分 rect’ 包含在此 Aspose.Imaging.Region 中; 否则,虚假。

IsVisible(航海,航海,航海,图形)

测试指定的直角的任何部分是否包含在这个 Aspose.Imaging.Region 时使用指定的 Aspose.Imaging.Graphics。

public bool IsVisible(float x, float y, float width, float height, Graphics g)

Parameters

x float

对直角的左上角的X协调进行测试。

y float

对直角的左上角的y协调进行测试。

width float

直角的宽度进行测试。

height float

直角的高度要测试。

g Graphics

一个 Aspose.Imaging.Graphics 代表一个图形背景。

Returns

bool

当指定的直角的任何部分都包含在本 Aspose.Imaging.Region 中;否则,虚假。

IsVisible(RectangleF, 图形)

测试所指定的 Aspose.Imaging.RectangleF 结构的任何部分是否包含在本 Aspose.Imaging.Region 中,当使用所指定的 Aspose.Imaging.Graphics 绘制时。

public bool IsVisible(RectangleF rect, Graphics g)

Parameters

rect RectangleF

Aspose.Imaging.RectangleF 结构进行测试。

g Graphics

一个 Aspose.Imaging.Graphics 代表一个图形背景。

Returns

bool

rect’ 包含在此 Aspose.Imaging.Region 中; 否则,虚假。

IsVisible(int , int , 图形)

测试指定的点是否包含在这个 Aspose.Imaging.Region 对象中,当使用指定的 Aspose.Imaging.Graphics 对象绘制时。

public bool IsVisible(int x, int y, Graphics g)

Parameters

x int

测试点的 x 协调。

y int

测试点的 y 协调。

g Graphics

一个 Aspose.Imaging.Graphics 代表一个图形背景。

Returns

bool

当指定的点在本 Aspose.Imaging.Region 中包含时是真实的;否则,是虚假的。

IsVisible(Point)

测试所指定的 Aspose.Imaging.Point 结构是否包含在本 Aspose.Imaging.Region 中。

public bool IsVisible(Point point)

Parameters

point Point

Aspose.Imaging.Point 要测试的结构。

Returns

bool

point’ 包含在此 Aspose.Imaging.Region 中时;否则,虚假。

IsVisible(点,图形)

测试所指定的 Aspose.Imaging.Point 结构是否包含在本 Aspose.Imaging.Region 中,当使用所指定的 Aspose.Imaging.Graphics 绘制时。

public bool IsVisible(Point point, Graphics g)

Parameters

point Point

Aspose.Imaging.Point 要测试的结构。

g Graphics

一个 Aspose.Imaging.Graphics 代表一个图形背景。

Returns

bool

point’ 包含在此 Aspose.Imaging.Region 中时;否则,虚假。

IsVisible(int , int , int , int , int)

测试指定直角的任何部分是否包含在本 Aspose.Imaging.Region 中。

public bool IsVisible(int x, int y, int width, int height)

Parameters

x int

对直角的左上角的X协调进行测试。

y int

对直角的左上角的y协调进行测试。

width int

直角的宽度进行测试。

height int

直角的高度要测试。

Returns

bool

当指定的直角的任何部分都包含在本 Aspose.Imaging.Region 中;否则,虚假。

IsVisible(Rectangle)

测试所指定的 Aspose.Imaging.Rectangle 结构中的任何部分是否包含在本 Aspose.Imaging.Region 中。

public bool IsVisible(Rectangle rect)

Parameters

rect Rectangle

Aspose.Imaging.Rectangle 结构要测试。

Returns

bool

此方法返回真实的,当任何部分 rect’ 包含在此 Aspose.Imaging.Region; 否则,虚假。

IsVisible(int , int , int , int , 图形)

测试指定的直角的任何部分是否包含在这个 Aspose.Imaging.Region 时使用指定的 Aspose.Imaging.Graphics。

public bool IsVisible(int x, int y, int width, int height, Graphics g)

Parameters

x int

对直角的左上角的X协调进行测试。

y int

对直角的左上角的y协调进行测试。

width int

直角的宽度进行测试。

height int

直角的高度要测试。

g Graphics

一个 Aspose.Imaging.Graphics 代表一个图形背景。

Returns

bool

当指定的直角的任何部分都包含在本 Aspose.Imaging.Region 中;否则,虚假。

IsVisible(直角,图形)

测试所指定的 Aspose.Imaging.Rectangle 结构中的任何部分是否包含在本 Aspose.Imaging.Region 中,当使用所指定的 Aspose.Imaging.Graphics 绘制时。

public bool IsVisible(Rectangle rect, Graphics g)

Parameters

rect Rectangle

Aspose.Imaging.Rectangle 结构要测试。

g Graphics

一个 Aspose.Imaging.Graphics 代表一个图形背景。

Returns

bool

rect’ 的任何部分包含在此 Aspose.Imaging.Region 中; 否则,虚假。

MakeEmpty()

启动这个 Aspose.Imaging.Region 到一个空白的室内。

public void MakeEmpty()

MakeInfinite()

启动这个 Aspose.Imaging.Region 反对一个无限的内部。

public void MakeInfinite()

Transform(Matrix)

将此 Aspose.Imaging.Region 转换为指定的 Aspose.Imaging.Matrix。

public void Transform(Matrix matrix)

Parameters

matrix Matrix

这个 Aspose.Imaging.Matrix 可以转换这个 Aspose.Imaging.Region。

Exceptions

ArgumentNullException

matrix’ is null.

Translate(航海,航海)

将此 Aspose.Imaging.Region 的坐标按所指定的数量分配。

public void Translate(float dx, float dy)

Parameters

dx float

此分類上一篇: Aspose.Imaging.Region 地平線

dy float

这个 Aspose.Imaging.Region 垂直折扣的金额。

Translate(int , int , int)

将此 Aspose.Imaging.Region 的坐标按所指定的数量分配。

public void Translate(int dx, int dy)

Parameters

dx int

此分類上一篇: Aspose.Imaging.Region 地平線

dy int

这个 Aspose.Imaging.Region 垂直折扣的金额。

Union(直角)

更新此 Aspose.Imaging.Region 到它本身的联盟和所指定的 Aspose.Imaging.RectangleF 结构。

public void Union(RectangleF rect)

Parameters

rect RectangleF

Aspose.Imaging.RectangleF 结构与这个 Aspose.Imaging.Region 相结合。

Union(Rectangle)

更新此 Aspose.Imaging.Region 到它本身的联盟和所指定的 Aspose.Imaging.Rectangle 结构。

public void Union(Rectangle rect)

Parameters

rect Rectangle

Aspose.Imaging.Rectangle 结构与这个 Aspose.Imaging.Region 相结合。

Union(GraphicsPath)

更新此 Aspose.Imaging.Region 到本身的联盟和指定的 Aspose.Imaging.GraphicsPath。

public void Union(GraphicsPath path)

Parameters

path GraphicsPath

该 Aspose.Imaging.GraphicsPath 与这个 Aspose.Imaging.Region 相连。

Exceptions

ArgumentNullException

path’ is null.

Union(Region)

将此 Aspose.Imaging.Region 更新到其本身和所指定的 Aspose.Imaging.Region 的联盟。

public void Union(Region region)

Parameters

region Region

该 Aspose.Imaging.Region 与此 Aspose.Imaging.Region 相连。

Exceptions

ArgumentNullException

region’ is null.

Xor(直角)

更新这个 Aspose.Imaging.Region 到联盟 minus 自己与指定的 Aspose.Imaging.RectangleF 结构的交叉。

public void Xor(RectangleF rect)

Parameters

rect RectangleF

Aspose.Imaging.RectangleF 结构与这个 Aspose.Imaging.Region 相匹配。

Xor(Rectangle)

更新这个 Aspose.Imaging.Region 到联盟 minus 自己与指定的 Aspose.Imaging.Rectangle 结构的交叉。

public void Xor(Rectangle rect)

Parameters

rect Rectangle

Aspose.Imaging.Rectangle 结构与这个 Aspose.Imaging.Region 相匹配。

Xor(GraphicsPath)

将此 Aspose.Imaging.Region 更新到联盟 minus 与指定的 Aspose.Imaging.GraphicsPath 交叉。

public void Xor(GraphicsPath path)

Parameters

path GraphicsPath

The Aspose.Imaging.GraphicsPath to xor with this Aspose.Imaging.Region。

Exceptions

ArgumentNullException

path’ is null.

Xor(Region)

更新此 Aspose.Imaging.Region 到 联盟 minus 自己与指定的 Aspose.Imaging.Region 交叉。

public void Xor(Region region)

Parameters

region Region

该 Aspose.Imaging.Region 与此 Aspose.Imaging.Region 相匹配。

Exceptions

ArgumentNullException

region’ is null.

 中文