commandline.dataToImage
Class GrayImage

java.lang.Object
  extended by commandline.dataToImage.GrayImage

public class GrayImage
extends java.lang.Object

This application creates a gray-level image in memory and store it in a file. This class does not uses JAI.


Constructor Summary
GrayImage(int width, int height)
          The application entry point.
 
Method Summary
 GrayImage getAbsoluteDifference(GrayImage grayImage)
           
 java.awt.image.BufferedImage getBufferedImage()
           
 void print(java.io.PrintStream p)
           
 void setSample(int x, int y, int grijswaarde)
           
 void writePNG(java.io.File toFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrayImage

public GrayImage(int width,
                 int height)
The application entry point.

Method Detail

setSample

public void setSample(int x,
                      int y,
                      int grijswaarde)

getBufferedImage

public java.awt.image.BufferedImage getBufferedImage()

writePNG

public void writePNG(java.io.File toFile)
              throws java.io.IOException
Throws:
java.io.IOException

print

public void print(java.io.PrintStream p)

getAbsoluteDifference

public GrayImage getAbsoluteDifference(GrayImage grayImage)
                                throws ImageNotEquallySizedException
Throws:
ImageNotEquallySizedException