跳转到主要内容
用于访问图像中的区域列表。

方法

NameDescription
ImageRegion Add(ImageRegion imageRegion);将现有区域添加到列表中。返回添加的区域。
ImageRegion Add(Rectangle rectangle, Page page);使用传入的 rectangle 创建一个新区域,并将其添加到字段的区域列表中。返回添加的区域。
ImageRegion Add(Rectangle[] rectangles, Page page);在指定页面上使用传入的 rectangles 创建一个新区域,并将其添加到字段的区域列表中。返回添加的区域。
ImageRegion Add(int left, int top, int right, int bottom, Page page);在指定页面上使用传入的矩形边界坐标创建一个新区域,并将该新区域添加到字段的区域列表中。返回添加的区域。
bool Remove(ImageRegion imageRegion);从列表中移除一个区域。如果区域移除成功则返回 true,否则返回 false
bool Remove(int imageRegionIndex);移除具有指定索引的区域。如果区域移除成功则返回 true,否则返回 false
void Clear();从列表中移除所有区域。