Examples of toFloatArray()


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()

    {
        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()

    {
        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()

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

    /**
     * {@inheritDoc}
 
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()

        // 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 = 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.ode4j.math.DVector3C.toFloatArray()

        * bodymatrix.length * 3);

    for (int i = 0; i < bodymatrix.length; i++) {
      for (int j = 0; j < bodymatrix.length; j++) {
        DVector3C vec0 = bodymatrix[i][j].getPosition();
        float[] f0 = vec0.toFloatArray();
        pos.put(f0);
      }
    }
    pos.rewind();

View Full Code Here

Examples of org.ode4j.math.DVector3C.toFloatArray()

        * bodymatrix.length * 3);

    for (int i = 0; i < bodymatrix.length; i++) {
      for (int j = 0; j < bodymatrix.length; j++) {
        DVector3C vec0 = bodymatrix[i][j].getPosition();
        float[] f0 = vec0.toFloatArray();
        pos.put(f0);
      }
    }
    pos.rewind();

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.