Package org.jpedal.color

Examples of org.jpedal.color.GenericColorSpace


            /**
             * workout colorspace
             **/
            PdfObject ColorSpace=Shading.getDictionary(PdfDictionary.ColorSpace);

            GenericColorSpace newColorSpace= ColorspaceFactory.getColorSpaceInstance(currentPdfFile, ColorSpace, shadingColorspacesObjects);

            newColorSpace.setPrinting(isPrinting);

            /**setup shading object*/

            @SuppressWarnings("UnusedAssignment") PdfPaint shading=null;

            if(shading!=null){
                /**
                 * shade the current clip
                 */
                gs.setFillType(GraphicsState.FILL);
                gs.setNonstrokeColor(shading);

                //track colorspace use
                cache.put(PdfObjectCache.ColorspacesUsed, newColorSpace.getID(),"x");

                current.drawShape(shadeShape,gs, Cmd.F) ;
            }
        }catch(Exception e){
        }
View Full Code Here

TOP

Related Classes of org.jpedal.color.GenericColorSpace

Copyright © 2018 www.massapicom. 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.