Package org.libtiff.jai.codec

Examples of org.libtiff.jai.codec.XTIFFDecodeParam


            throw new IOException("Image Decoder not created for retrieving image, need to init() GeoTIFFFile.");
        }

        SeekableStream ss = SeekableStream.wrapInputStream(fileURL.openStream(),
                true);
        XTIFFImageDecoder xtffImageDecoder = new XTIFFImageDecoder(ss, new XTIFFDecodeParam());
        RenderedImage ri = xtffImageDecoder.decodeAsRenderedImage();
        BufferedImage bi = new BufferedImage(ri.getColorModel(), ri.copyData(null), false, new Hashtable());
        ss.close();
        return bi;
    }
View Full Code Here


    public XTIFFImage(SeekableStream stream, TIFFDecodeParam param,
            int directory) throws IOException {

        this.stream = stream;
        if (param == null || !(param instanceof XTIFFDecodeParam)) {
            param = new XTIFFDecodeParam(param);
        }
        this.param = param;

        decodePaletteAsShorts = param.getDecodePaletteAsShorts();
View Full Code Here

TOP

Related Classes of org.libtiff.jai.codec.XTIFFDecodeParam

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.