Examples of PDGamma


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

                // Setup some basic reusable objects/constants
                // Annotations themselves can only be used once!

                float inch = 72;
                PDGamma colourRed = new PDGamma();
                colourRed.setR(1);
                PDGamma colourBlue = new PDGamma();
                colourBlue.setB(1);
                PDGamma colourBlack = new PDGamma();

                PDBorderStyleDictionary borderThick = new PDBorderStyleDictionary();
                borderThick.setWidth(inch/12)// 12th inch
                PDBorderStyleDictionary borderThin = new PDBorderStyleDictionary();
                borderThin.setWidth(inch/72); // 1 point
View Full Code Here

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

    public PDGamma getColour()
    {
        COSArray c = (COSArray) getDictionary().getItem(COSName.C);
        if (c != null)
        {
            return new PDGamma(c);
        }
        else
        {
            return null;
        }
View Full Code Here

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

    public PDGamma getBorderColour()
    {
        COSBase c = this.getDictionary().getItem(COSName.getPDFName("BC"));
        if (c instanceof COSArray)
        {
            return new PDGamma((COSArray) c);
        }
        return null;
    }
View Full Code Here

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

    public PDGamma getBackground()
    {
        COSBase c = this.getDictionary().getItem(COSName.getPDFName("BG"));
        if (c instanceof COSArray)
        {
            return new PDGamma((COSArray) c);
        }
        return null;
    }
View Full Code Here

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

    protected PDGamma getColor(String name)
    {
        COSArray c = (COSArray) this.getCOSDictionary().getDictionaryObject(name);
        if (c != null)
        {
            return new PDGamma(c);
        }
        return null;
    }
View Full Code Here

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

            return null;
        }
        if (array.size() == 3)
        {
            // only one colour
            return new PDGamma(array);
        }
        else if (array.size() == 4)
        {
            return new PDFourColours(array);
        }
View Full Code Here

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

    public PDGamma getColour()
    {
        COSArray c = (COSArray) getDictionary().getItem(COSName.C);
        if (c != null)
        {
            return new PDGamma(c);
        }
        else
        {
            return null;
        }
View Full Code Here

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

    public PDGamma getColour()
    {
        COSArray c = (COSArray) getDictionary().getItem(COSName.C );
        if (c != null)
        {
            return new PDGamma( c );
        }
        else
        {
            return null;
        }
View Full Code Here

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

    public PDGamma getColour()
    {
        COSArray c = (COSArray) getDictionary().getItem(COSName.C );
        if (c != null)
        {
            return new PDGamma( c );
        }
        else
        {
            return null;
        }
View Full Code Here

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

    public PDGamma getColour()
    {
        COSArray c = (COSArray) getDictionary().getItem(COSName.C);
        if (c != null)
        {
            return new PDGamma(c);
        }
        else
        {
            return 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.