Drawing a polygon with a hole Drawing a polygon with a hole The following code example creates a polygon with a hole.