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

  • Finding current android device location
  • getSystemService (Context)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JComboBox (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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