org.geotools.gce.geotiff
Class GeoTiffUtils

java.lang.Object
  extended byorg.geotools.gce.geotiff.GeoTiffUtils

public class GeoTiffUtils
extends java.lang.Object

Author:
simone iannecchini, alessio fabiani

Constructor Summary
GeoTiffUtils()
           
 
Method Summary
static javax.media.jai.PlanarImage direct2ComponentColorModel(javax.media.jai.PlanarImage surrogateImage)
          This method allows me to go from DirectColorModel to ComponentColorModel which seems to be well acepted from PNGEncoder and TIFFEncoder.
static javax.media.jai.PlanarImage reformatColorModel2ComponentColorModel(javax.media.jai.PlanarImage surrogateImage)
          Reformat the index color model to a component color model preserving transparency.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoTiffUtils

public GeoTiffUtils()
Method Detail

direct2ComponentColorModel

public static javax.media.jai.PlanarImage direct2ComponentColorModel(javax.media.jai.PlanarImage surrogateImage)
This method allows me to go from DirectColorModel to ComponentColorModel which seems to be well acepted from PNGEncoder and TIFFEncoder.

Parameters:
surrogateImage -
Returns:

reformatColorModel2ComponentColorModel

public static javax.media.jai.PlanarImage reformatColorModel2ComponentColorModel(javax.media.jai.PlanarImage surrogateImage)
                                                                          throws java.lang.IllegalArgumentException
Reformat the index color model to a component color model preserving transparency. Code from jai-interests archive.

Parameters:
surrogateImage -
Returns:
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!


Copyright © GeoTools. All Rights Reserved.