dataToImage
Class GrayImage

java.lang.Object
  extended by 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()
           
 java.awt.Image getImage()
           
 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
equals, 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()

getImage

public java.awt.Image getImage()

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