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

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

public class RasterExtractor
extends java.lang.Object


Constructor Summary
RasterExtractor(java.lang.String psFileName, java.lang.String outFileName)
           
 
Method Summary
 java.awt.image.BufferedImage getBufferedImage(byte[] bytes, int width, int height)
           
 java.awt.image.BufferedImage getRasterImage()
           
static void main(java.lang.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(java.lang.String psFileName,
                       java.lang.String outFileName)
Method Detail

getRasterImage

public java.awt.image.BufferedImage getRasterImage()
                                            throws java.io.FileNotFoundException,
                                                   java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

getBufferedImage

public java.awt.image.BufferedImage getBufferedImage(byte[] bytes,
                                                     int width,
                                                     int height)

writePNG

public void writePNG()
              throws java.io.FileNotFoundException,
                     java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

main

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