Package com.sun.media.jai.codec

Examples of com.sun.media.jai.codec.TIFFDecodeParam


     */
    public ImageData load(File input) throws IOException  {

        SeekableStream s = new FileSeekableStream(input);

        TIFFDecodeParam param = new TIFFDecodeParam();
        param.setDecodePaletteAsShorts( false );
        ImageDecoder dec = ImageCodec.createImageDecoder("tiff", s, param); //$NON-NLS-1$
        int imageToLoad = 0;
        RenderedImageAdapter planarImage = new RenderedImageAdapter(
                                    dec.decodeAsRenderedImage( imageToLoad ));

View Full Code Here


                     int directory)
        throws IOException {

        this.stream = stream;
  if (param == null) {
      param = new TIFFDecodeParam();
  }

  decodePaletteAsShorts = param.getDecodePaletteAsShorts();

        // Read the specified directory.
View Full Code Here

/*      */   public TIFFImage(SeekableStream stream, TIFFDecodeParam param, int directory)
/*      */     throws IOException
/*      */   {
/*  310 */     this.stream = stream;
/*  311 */     if (param == null) {
/*  312 */       param = new TIFFDecodeParam();
/*      */     }
/*      */
/*  315 */     this.decodePaletteAsShorts = param.getDecodePaletteAsShorts();
/*      */
/*  318 */     TIFFDirectory dir = param.getIFDOffset() == null ? new TIFFDirectory(stream, directory) : new TIFFDirectory(stream, param.getIFDOffset().longValue(), directory);
View Full Code Here

TOP

Related Classes of com.sun.media.jai.codec.TIFFDecodeParam

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.