/// 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
...
...
@@ -150,7 +150,7 @@ class PdfGraphics {
/// Apply a shader
voidapplyShader(PdfShadingshader){
// The shader needs to be registered in the page resources
_page!.addShader(shader);
_page.addShader(shader);
buf.putString('${shader.name} sh\n');
}
...
...
@@ -179,7 +179,7 @@ class PdfGraphics {
h??=img.height.toDouble()*w/img.width.toDouble();
// The image needs to be registered in the page resources