Examples of toPaint()


Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShading.toPaint()

                Matrix patternMatrix = shadingPattern.getMatrix();
                if (patternMatrix == null)
                {
                    patternMatrix = new Matrix();
                }
                return shading.toPaint(patternMatrix);
            }
        }
    }

    // sets the clipping path using caching for performance, we track lastClip manually because
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShading.toPaint()

    @Override
    public void shadingFill(COSName shadingName) throws IOException
    {
        PDShading shading = getResources().getShading(shadingName);
        Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();
        Paint paint = shading.toPaint(ctm);

        graphics.setComposite(getGraphicsState().getNonStrokingJavaComposite());
        graphics.setPaint(paint);
        graphics.setClip(null);
        lastClip = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.