To convert the current path to a region, use GpiPathToRegion. Then the new region can be modified using any of the region functions that allow the creation of irregular shaped regions.
Any open figures in the path definition are closed automatically by GpiPathToRegion. Upon conversion, the current path definition is discarded just like it is when being converted to a clip path. When GpiPathToRegion is complete, the path definition is deleted automatically.
This function accepts the path identifier (which must be 1) and one of two construction options as input: