Examples of PDShadingPattern


Examples of org.apache.pdfbox.pdmodel.graphics.pattern.PDShadingPattern

                            patternSpace.getUnderlyingColorSpace(), color, xform);
                }
            }
            else
            {
                PDShadingPattern shadingPattern = (PDShadingPattern)pattern;
                PDShading shading = shadingPattern.getShading();
                if (shading == null)
                {
                    LOG.error("shadingPattern is null, will be filled with transparency");
                    return new Color(0,0,0,0);
                }

                // fixme: shading needs to use the correct matrix
                Matrix patternMatrix = shadingPattern.getMatrix();
                if (patternMatrix == null)
                {
                    patternMatrix = new Matrix();
                }
                return shading.toPaint(patternMatrix);
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.