Examples of PredictorAlgorithm


Examples of org.apache.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm

             */
            if( predictor < 10 ||
                filters == null || !(filters.contains( COSName.LZW_DECODE.getName()) ||
                         filters.contains( COSName.FLATE_DECODE.getName()) ) )
            {
                PredictorAlgorithm filter = PredictorAlgorithm.getFilter(predictor);
                filter.setWidth(width);
                filter.setHeight(height);
                filter.setBpp((bpc * 3) / 8);
            }
            System.arraycopy( array, 0,bufferData, 0,
                    (array.length<bufferData.length?array.length: bufferData.length) );
            image = new BufferedImage(cm, raster, false, null);
           
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm

             */
            if( predictor < 10 ||
                filters == null || !(filters.contains( COSName.LZW_DECODE.getName()) ||
                         filters.contains( COSName.FLATE_DECODE.getName()) ) )
            {
                PredictorAlgorithm filter = PredictorAlgorithm.getFilter(predictor);
                filter.setWidth(width);
                filter.setHeight(height);
                filter.setBpp((bpc * 3) / 8);
                filter.decode(array, bufferData);
            }
            else
            {
                System.arraycopy( array, 0,bufferData, 0,
                        (array.length<bufferData.length?array.length: bufferData.length) );
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm

             */
            if( predictor < 10 ||
                filters == null || !(filters.contains( COSName.LZW_DECODE.getName()) ||
                         filters.contains( COSName.FLATE_DECODE.getName()) ) )
            {
                PredictorAlgorithm filter = PredictorAlgorithm.getFilter(predictor);
                filter.setWidth(width);
                filter.setHeight(height);
                filter.setBpp((bpc * 3) / 8);
            }
            System.arraycopy( array, 0,bufferData, 0,
                    (array.length<bufferData.length?array.length: bufferData.length) );
            image = new BufferedImage(cm, raster, false, null);
           
View Full Code Here

Examples of org.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm

        DataBufferByte buffer = (DataBufferByte)raster.getDataBuffer();
        byte[] bufferData = buffer.getData();
        //System.arraycopy( array, 0, bufferData, 0, array.length );
        int predictor = getPredictor();

        PredictorAlgorithm filter = PredictorAlgorithm.getFilter(predictor);
        filter.setWidth(width);
        filter.setHeight(height);
        filter.setBpp((bpc * 3) / 8);
        filter.decode(array, bufferData);
        image = new BufferedImage(cm, raster, false, null);
        return image;
    }
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.