Method Intersect
Intersect(Rectangle)
Updates the region to be the intersection of itself with the specified rectangle.
public void Intersect(Rectangle rectangle)
Parameters
rectangle
RectangleThe rectangle to intersect with the region.
Remarks
This is a helper method that is equivalent to calling Combine(Rectangle, RegionOp) with Intersect.
Intersect(Region?)
Updates the region to be the intersection of itself with the specified region.
public void Intersect(Region? region)
Parameters
region
RegionThe region to intersect with this region.
Remarks
This is a helper method that is equivalent to calling Combine(Region?, RegionOp) with Intersect.