Method IntersectClipRect
IntersectClipRect(int, int, int, int)
When implemented by a class, creates a new clipping region from the intersection of the current clipping region and the specified rectangle.
void IntersectClipRect(int x, int y, int width, int height)
Parameters
x
intX-coordinate of the upper-left corner of the rectangle.
y
intY-coordinate of the upper-left corner of the rectangle.
width
intWidth of the rectangle.
height
intHeight of the rectangle.
IntersectClipRect(Rectangle)
When implemented by a class, creates a new clipping region from the intersection of the current clipping region and the specified rectangle.
void IntersectClipRect(Rectangle rect)
Parameters
rect
RectangleRectangle to intersect.