/** * Create a PDFPaint from this pattern and set of components. This creates a buffered image of * this pattern using the given paint, then uses that image to create the correct TexturePaint to * use in the PDFPaint. * * @param basePaint the base paint to use, or null if not needed */ @Override public PDFPaint getPaint(PDFPaint basePaint) { return shader.getPaint(); }
/** * Parse the pattern from the PDFObject * * <p>Note the resources passed in are ignored... */ @Override protected void parse(PDFObject patternObj, Map rsrc) throws IOException { this.shader = PDFShader.getShader(patternObj.getDictRef("Shading"), rsrc); }