dataToImage
Class GrayImage
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrayImage
public GrayImage(int width,
int height)
- The application entry point.
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