congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TIFFDecodeParam.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.xmlgraphics.image.codec.tiff.TIFFDecodeParam
constructor

Best Java code snippets using org.apache.xmlgraphics.image.codec.tiff.TIFFDecodeParam.<init> (Showing top 7 results out of 315)

origin: graphhopper/graphhopper

@Override
Raster generateRasterFromFile(File file, String tifName) {
  SeekableStream ss = null;
  try {
    InputStream is = new FileInputStream(file);
    ZipInputStream zis = new ZipInputStream(is);
    // find tif file in zip
    ZipEntry entry = zis.getNextEntry();
    while (entry != null && !entry.getName().equals(tifName)) {
      entry = zis.getNextEntry();
    }
    ss = SeekableStream.wrapInputStream(zis, true);
    TIFFImageDecoder imageDecoder = new TIFFImageDecoder(ss, new TIFFDecodeParam());
    return imageDecoder.decodeAsRaster();
  } catch (Exception e) {
    throw new RuntimeException("Can't decode " + tifName, e);
  } finally {
    if (ss != null)
      Helper.close(ss);
  }
}
origin: graphhopper/graphhopper

@Override
Raster generateRasterFromFile(File file, String tifName) {
  SeekableStream ss = null;
  try {
    InputStream is = new FileInputStream(file);
    ss = SeekableStream.wrapInputStream(is, true);
    TIFFImageDecoder imageDecoder = new TIFFImageDecoder(ss, new TIFFDecodeParam());
    return imageDecoder.decodeAsRaster();
  } catch (Exception e) {
    throw new RuntimeException("Can't decode " + file.getName(), e);
  } finally {
    if (ss != null)
      close(ss);
  }
}
origin: com.graphhopper/graphhopper-core

@Override
Raster generateRasterFromFile(File file, String tifName) {
  SeekableStream ss = null;
  try {
    InputStream is = new FileInputStream(file);
    ss = SeekableStream.wrapInputStream(is, true);
    TIFFImageDecoder imageDecoder = new TIFFImageDecoder(ss, new TIFFDecodeParam());
    return imageDecoder.decodeAsRaster();
  } catch (Exception e) {
    throw new RuntimeException("Can't decode " + file.getName(), e);
  } finally {
    if (ss != null)
      close(ss);
  }
}
origin: com.graphhopper/graphhopper-core

@Override
Raster generateRasterFromFile(File file, String tifName) {
  SeekableStream ss = null;
  try {
    InputStream is = new FileInputStream(file);
    ZipInputStream zis = new ZipInputStream(is);
    // find tif file in zip
    ZipEntry entry = zis.getNextEntry();
    while (entry != null && !entry.getName().equals(tifName)) {
      entry = zis.getNextEntry();
    }
    ss = SeekableStream.wrapInputStream(zis, true);
    TIFFImageDecoder imageDecoder = new TIFFImageDecoder(ss, new TIFFDecodeParam());
    return imageDecoder.decodeAsRaster();
  } catch (Exception e) {
    throw new RuntimeException("Can't decode " + tifName, e);
  } finally {
    if (ss != null)
      Helper.close(ss);
  }
}
origin: com.rgi-corp/graphhopper

  TIFFImageDecoder imageDecoder = new TIFFImageDecoder(ss, new TIFFDecodeParam());
  raster = imageDecoder.decodeAsRaster();
} catch (Exception e) {
origin: com.graphhopper/graphhopper

  TIFFImageDecoder imageDecoder = new TIFFImageDecoder(ss, new TIFFDecodeParam());
  raster = imageDecoder.decodeAsRaster();
} catch (Exception e)
origin: org.apache.xmlgraphics/xmlgraphics-commons

param = new TIFFDecodeParam();
org.apache.xmlgraphics.image.codec.tiffTIFFDecodeParam<init>

Javadoc

Constructs a default instance of TIFFDecodeParam.

Popular methods of TIFFDecodeParam

  • decode16BitsTo8Bits
    Returns an unsigned 8 bit value computed by dithering the unsigned 16 bit value. Note that the TIFF
  • decodeSigned16BitsTo8Bits
    Returns an unsigned 8 bit value computed by dithering the signed 16 bit value. This method deals cor
  • getDecodePaletteAsShorts
    Returns true if palette entries will be decoded as shorts, resulting in an output image with short d
  • getIFDOffset
    Returns the value set by setIFDOffset() ornull if no value has been set.

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ImageIO (javax.imageio)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now