Package org.pdfbox.pdmodel.graphics.predictor

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

Related Classes of org.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm

Copyright © 2018 www.massapicom. 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.