/// Draw a surface on the previously defined shape
/// set evenOdd to false to use the nonzero winding number rule to determine the region to fill and to true to use the even-odd rule to determine the region to fill
voidfillPath({boolevenOdd=false}){
assert((){
if(!_page.pdfDocument.compress){
_buf.putComment('fillPath evenOdd:$evenOdd');
}
returntrue;
}());
_buf.putString('f${evenOdd ? '*' : ''}\n');
}
/// Draw the contour of the previously defined shape
voidstrokePath({boolclose=false}){
assert((){
if(!_page.pdfDocument.compress){
_buf.putComment('strokePath close:$close');
}
returntrue;
}());
_buf.putString('${close ? 's' : 'S'}\n');
}
/// Close the path with a line
voidclosePath(){
assert((){
if(!_page.pdfDocument.compress){
_buf.putComment('closePath');
}
returntrue;
}());
_buf.putString('h\n');
}
/// Create a clipping surface from the previously defined shape,
_buf.putString('W${evenOdd ? '*' : ''}${end ? ' n' : ''}\n');
}
/// Draw a surface on the previously defined shape and then draw the contour
/// set evenOdd to false to use the nonzero winding number rule to determine the region to fill and to true to use the even-odd rule to determine the region to fill