Create a new Rect object from the top-left and bottom-right corners.
x parameter of the top-left corner
y parameter of the top-left corner
x parameter of the bottom-right corner
y parameter of the bottom-right corner
the new Rect object
Create a new Rect object from the top-left and bottom-right corners.