Examples of toFloatArray()


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

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

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

    {
        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

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

        // 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

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

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

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

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

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

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

        // 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

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

        if (colorSpace != null)
        {
            PDDeviceN sep = (PDDeviceN) colorSpace;
            colorSpace = sep.getAlternateColorSpace();
            COSArray colorValues = sep.calculateColorValues(arguments);
            colorInstance.setColorSpaceValue(colorValues.toFloatArray());
        }
    }
}
View Full Code Here

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

        if (colorSpace != null)
        {
            PDSeparation sep = (PDSeparation) colorSpace;
            colorSpace = sep.getAlternateColorSpace();
            COSArray values = sep.calculateColorValues(arguments.get(0));
            colorInstance.setColorSpaceValue(values.toFloatArray());
        }
    }
}
View Full Code Here

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

    {
        Color retval = null;
        COSArray array = (COSArray)annot.getDictionaryObject( "color" );
        if( array != null )
        {
            float[] rgb = array.toFloatArray();
            if( rgb.length >=3 )
            {
                retval = new Color( rgb[0], rgb[1], rgb[2] );
            }
        }
View Full Code Here

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

        if (colorSpace != null)
        {
            PDSeparation sep = (PDSeparation) colorSpace;
            colorSpace = sep.getAlternateColorSpace();
            COSArray values = sep.calculateColorValues(arguments.get(0));
            colorInstance.setColorSpaceValue(values.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.