addShader method

void addShader(
  1. PdfShading shader
)
inherited

Add a shader to this graphic object

Implementation

void addShader(PdfShading shader) {
  if (!shading.containsKey(shader.name)) {
    shading[shader.name] = shader;
  }
}