clipPath method

void clipPath({
  1. bool evenOdd = false,
  2. bool end = true,
})

Create a clipping surface from the previously defined shape, to prevent any further drawing outside

Implementation

void clipPath({bool evenOdd = false, bool end = true}) {
  assert(() {
    if (_page.pdfDocument.verbose) {
      _buf.putComment('clipPath evenOdd:$evenOdd end:$end');
    }
    return true;
  }());

  _buf.putString('W${evenOdd ? '*' : ''}${end ? ' n' : ''}\n');
}