| Top |  |  |  |  | 
gboolean gimp_rectangle_intersect (gint x1,gint y1,gint width1,gint height1,gint x2,gint y2,gint width2,gint height2,gint *dest_x,gint *dest_y,gint *dest_width,gint *dest_height);
Calculates the intersection of two rectangles.
| x1 | origin of first rectangle | |
| y1 | origin of first rectangle | |
| width1 | width of first rectangle | |
| height1 | height of first rectangle | |
| x2 | origin of second rectangle | |
| y2 | origin of second rectangle | |
| width2 | width of second rectangle | |
| height2 | height of second rectangle | |
| dest_x | return location for origin of intersection (may be  | |
| dest_y | return location for origin of intersection (may be  | |
| dest_width | return location for width of intersection (may be  | |
| dest_height | return location for height of intersection (may be  | 
Since: GIMP 2.4
void gimp_rectangle_union (gint x1,gint y1,gint width1,gint height1,gint x2,gint y2,gint width2,gint height2,gint *dest_x,gint *dest_y,gint *dest_width,gint *dest_height);
Calculates the union of two rectangles.
| x1 | origin of first rectangle | |
| y1 | origin of first rectangle | |
| width1 | width of first rectangle | |
| height1 | height of first rectangle | |
| x2 | origin of second rectangle | |
| y2 | origin of second rectangle | |
| width2 | width of second rectangle | |
| height2 | height of second rectangle | |
| dest_x | return location for origin of union (may be  | |
| dest_y | return location for origin of union (may be  | |
| dest_width | return location for width of union (may be  | |
| dest_height | return location for height of union (may be  | 
Since: GIMP 2.8