com.jhlabs.image

Class LifeFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class LifeFilter
extends BinaryFilter

A filter which performs one round of the game of Life on an image.

Field Summary

Fields inherited from class com.jhlabs.image.BinaryFilter

blackFunction, colormap, iterations, newColor

Fields inherited from class com.jhlabs.image.WholeImageFilter

originalSpace, transformedSpace

Constructor Summary

LifeFilter()

Method Summary

protected int[]
filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
String
toString()

Methods inherited from class com.jhlabs.image.BinaryFilter

getBlackFunction, getColormap, getIterations, getNewColor, setBlackFunction, setColormap, setIterations, setNewColor

Methods inherited from class com.jhlabs.image.WholeImageFilter

filter, filterPixels, transformSpace

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

LifeFilter

public LifeFilter()

Method Details

filterPixels

protected int[] filterPixels(int width,
                             int height,
                             int[] inPixels,
                             Rectangle transformedSpace)
Overrides:
filterPixels in interface WholeImageFilter

toString

public String toString()