Examples of PDColor


Examples of org.apache.pdfbox.pdmodel.graphics.color.PDColor

            colorValues.add( COSInteger.ZERO );
            colorValues.add( COSInteger.ZERO );
            colorValues.add( COSInteger.ZERO );
            dictionary.setItem( "C", colorValues );
        }
        PDColor color = new PDColor(colorValues.toFloatArray(), PDDeviceRGB.INSTANCE);
        return color;
    }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDColor

    @Override
    public void process(Operator operator, List<COSBase> arguments) throws IOException
    {
        COSArray array = new COSArray();
        array.addAll(arguments);
        setColor(new PDColor(array, getColorSpace()));
    }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDColor

     *
     * @return The structure element of this node.
     */
    public PDColor getTextColor()
    {
        PDColor retval = null;
        COSArray csValues = (COSArray)node.getDictionaryObject( COSName.C );
        if( csValues == null )
        {
            csValues = new COSArray();
            csValues.growToSize( 3, new COSFloat( 0 ) );
            node.setItem( COSName.C, csValues );
        }
        retval = new PDColor(csValues.toFloatArray(), PDDeviceRGB.INSTANCE);
        return retval;
    }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDColor

        saveGraphicsState();

        // non-colored patterns have to be given a color
        if (colorSpace != null)
        {
            color = new PDColor(color.getComponents(), colorSpace);
            getGraphicsState().setNonStrokingColorSpace(colorSpace);
            getGraphicsState().setNonStrokingColor(color);
            getGraphicsState().setStrokingColorSpace(colorSpace);
            getGraphicsState().setStrokingColor(color);
        }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDColor

        AffineTransform at = ctm.createAffineTransform();

        if (pdImage.isStencil())
        {
            // fill the image with paint
            PDColor color = getGraphicsState().getNonStrokingColor();
            BufferedImage image = pdImage.getStencilImage(getPaint(color));

            // draw the image
            drawBufferedImage(image, at);
        }
View Full Code Here

Examples of org.foray.fotree.fo.prop.PdColor

     * @param context An object that knows how to resolve FO Tree context
     * issues.
     * @return The color property.
     */
    public java.awt.Color getColor(final FObj fobj, final FoContext context) {
        final PdColor property = (PdColor) getProperty(FoProperty.COLOR);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        return PdColor.getValueNoInstance(context, fobj);
    }
View Full Code Here

Examples of org.foray.fotree.fo.prop.PdColor

        }
        case CLIP: {
            return new PdClip(fobj, propertyFullName, attributeValue);
        }
        case COLOR: {
            return new PdColor(fobj, propertyFullName, attributeValue);
        }
        case COLOR_PROFILE_NAME: {
            return new PdColorProfileName(fobj, propertyFullName,
                    attributeValue);
        }
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.