org.opensha.commons.mapping.gmt.raster
Class RasterExtractor

java.lang.Object
  extended by org.opensha.commons.mapping.gmt.raster.RasterExtractor

public class RasterExtractor
extends Object


Constructor Summary
RasterExtractor(String psFileName, String outFileName)
           
 
Method Summary
 BufferedImage getBufferedImage(byte[] bytes, int width, int height)
           
 BufferedImage getRasterImage()
           
static void main(String[] args)
           
 void writePNG()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterExtractor

public RasterExtractor(String psFileName,
                       String outFileName)
Method Detail

getRasterImage

public BufferedImage getRasterImage()
                             throws FileNotFoundException,
                                    IOException
Throws:
FileNotFoundException
IOException

getBufferedImage

public BufferedImage getBufferedImage(byte[] bytes,
                                      int width,
                                      int height)

writePNG

public void writePNG()
              throws FileNotFoundException,
                     IOException
Throws:
FileNotFoundException
IOException

main

public static void main(String[] args)
Parameters:
args -