Test
Class CreateSimplePattern
java.lang.Object
Test.CreateSimplePattern
public class CreateSimplePattern
- extends java.lang.Object
This application creates a color image in memory (as an matrix of ints)
and save it on a file. The image can have some of its pixels mixed to create a
sort of salt-and-pepper noise. The application can be easily adapted for other
purposes, e.g. other image generation algorithms.common.
This code is based on an entry on the JAI FAQ
http://java.sun.com/products/java-media/jai/
forDevelopers/jaifaq.html#planarimage
and on a related post on the JAI mailing list
http://archives.java.sun.com/cgi-bin/wa?A2=ind9907&L=jai-interest&P=R1637
Method Summary |
void |
showTo(java.lang.String path,
java.awt.Dimension d,
int[] pixelColo)
The application entry point. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateSimplePattern
public CreateSimplePattern()
showTo
public void showTo(java.lang.String path,
java.awt.Dimension d,
int[] pixelColo)
- The application entry point.
- Parameters:
args
- the command line arguments.