A PageShape that adjusts the margins to follow the outline of
an arbitrary shape such as a polygon, circle, ellipse, etc.
The left and right margins will be adjusted to touch the leftmost and rightmost
edges of the shape (respectively).
The supplied shape must be transformed so that it intersects with the
drawn region prior to creating the shape. As creating a GeometricShape
is fairly expensive, it is recommended that you create them ahead of time
and reuse them where possible, as opposed to creating them each time a
painting function is called.
A PageShape that adjusts the margins to follow the outline of an arbitrary shape such as a polygon, circle, ellipse, etc. The left and right margins will be adjusted to touch the leftmost and rightmost edges of the shape (respectively). The supplied shape must be transformed so that it intersects with the drawn region prior to creating the shape. As creating a GeometricShape is fairly expensive, it is recommended that you create them ahead of time and reuse them where possible, as opposed to creating them each time a painting function is called.