Package org.apache.pdfbox.cos

Examples of org.apache.pdfbox.cos.COSArray.toFloatArray()


        patchList = new ArrayList<Patch>();

        COSArray bg = shading.getBackground();
        if (bg != null)
        {
            background = bg.toFloatArray();
            rgbBackground = convertToRGB(background);
        }
    }

    /**
 
View Full Code Here


        // get background values if available
        COSArray bg = shading.getBackground();
        if (bg != null)
        {
            background = bg.toFloatArray();
            rgbBackground = convertToRGB(background);
        }
        colorTable = calcColorTable();
    }
View Full Code Here

    {
        COSArray rangesArray = getRangeValues();
        float[] result = null;
        if (rangesArray != null)
        {
            float[] rangeValues = rangesArray.toFloatArray();
            int numberOfRanges = rangeValues.length/2;
            result = new float[numberOfRanges];
            for (int i=0; i<numberOfRanges; i++)
            {
                result[i] = clipToRange(inputValues[i], rangeValues[2*i], rangeValues[2*i+1]);
 
View Full Code Here

        // get background values if available
        COSArray bg = shadingType2.getBackground();
        if (bg != null)
        {
            background = bg.toFloatArray();
        }
    }
    /**
     * {@inheritDoc}
     */
 
View Full Code Here

    {
        COSArray rangesArray = getRangeValues();
        float[] result = null;
        if (rangesArray != null)
        {
            float[] rangeValues = rangesArray.toFloatArray();
            int numberOfRanges = rangeValues.length/2;
            result = new float[numberOfRanges];
            for (int i=0; i<numberOfRanges; i++)
            {
                result[i] = clipToRange(inputValues[i], rangeValues[2*i], rangeValues[2*i+1]);
 
View Full Code Here

        // get background values if available
        COSArray bg = shadingType5.getBackground();
        if (bg != null)
        {
            background = bg.toFloatArray();
        }

        //TODO missing: BBox, AntiAlias (p. 305 in 1.7 spec)
       
        // p318:
View Full Code Here

        // get background values if available
        COSArray bg = shadingType1.getBackground();
        if (bg != null)
        {
            background = bg.toFloatArray();
        }
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

        // get background values if available
        COSArray bg = shadingType3.getBackground();
        if (bg != null)
        {
            background = bg.toFloatArray();
        }
    }
    /**
     * {@inheritDoc}
     */
 
View Full Code Here

        // get background values if available
        COSArray bg = shadingType4.getBackground();
        if (bg != null)
        {
            background = bg.toFloatArray();
        }

        //TODO missing: BBox, AntiAlias (p. 305 in 1.7 spec)
        // p318:
        //  reading in sequence from higher-order to lower-order bit positions
View Full Code Here

        if (colorSpace != null)
        {
            PDDeviceN sep = (PDDeviceN) colorSpace;
            colorSpace = sep.getAlternateColorSpace();
            COSArray colorValues = sep.calculateColorValues(arguments);
            colorInstance.setColorSpaceValue(colorValues.toFloatArray());
        }
    }
}
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.