16.5.3 Computing with Regions

To generate the smallest rectangle enclosing a region, use XClipBox().

To compute the intersection of two regions, use XIntersectRegion().

To compute the union of two regions, use XUnionRegion().

To create a union of a source region and a rectangle, use XUnionRectWithRegion().

To subtract two regions, use XSubtractRegion().

To calculate the difference between the union and intersection of two regions, use XXorRegion().

Next: Determining if Regions Are Empty or Equal

Christophe Tronche, ch@tronche.com