Examples of toFloatArray()


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

                LOG.error("decode array " + cosDecode
                        + " not compatible with color space, using default");
            }
            else
            {
                decode = cosDecode.toFloatArray();
            }
        }

        // use color space default
        if (decode == null)
View Full Code Here

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

    public float[] getCoordSystemOrigin()
    {
        COSArray o = (COSArray)this.getDictionary().getDictionaryObject("O");
        if (o != null)
        {
            return o.toFloatArray();
        }
        return null;
    }

    /**
 
View Full Code Here

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

    public float[] getQuadPoints()
    {
        COSArray quadPoints = (COSArray) getDictionary().getDictionaryObject( "QuadPoints" );
        if (quadPoints != null)
        {
            return quadPoints.toFloatArray();
        }
        else
        {
            return null; // Should never happen as this is a required item
        }
View Full Code Here

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

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

    @Override
    public void dispose()
View Full Code Here

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

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

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

            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;
    }

    /**
     * Set the color space instance for this box style.  This must be a
View Full Code Here

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

        {
            csValues = new COSArray();
            csValues.growToSize( 3, new COSFloat( 0 ) );
            node.setItem( COSName.C, csValues );
        }
        retval = new PDColor(csValues.toFloatArray(), PDDeviceRGB.INSTANCE);
        return retval;
    }

    /**
     * Set the RGB text color for this node.
View Full Code Here

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

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

        // get background values if available
        COSArray bg = shading.getBackground();
        if (bg != null)
        {
            background = bg.toFloatArray();
            rgbBackground = convertToRGB(background);
        }
        colorTable = calcColorTable();
    }
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
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.