跳转到主要内容
提供对图像上矩形区域列表的访问。

方法

名称描述
Rectangle Add(int left, int top, int right, int bottom);将具有指定(left、top、right、bottom)边界的矩形区域添加到区域。返回添加的矩形。
Rectangle Add(Rectangle rectangle);将传入的矩形添加到field区域。返回添加的矩形。
bool Remove(Rectangle rectangle);从field区域的矩形列表中移除传入的矩形。移除成功返回true,否则返回false
bool Remove(int rectangleIndex);从field区域的矩形列表中移除指定索引的矩形区域。移除成功返回true,否则返回false
void Clear();从列表中移除所有矩形区域。