com.jhlabs.image

Class OutlineFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class OutlineFilter
extends BinaryFilter

Given a binary image, this filter converts it to its outline, replacing all interior pixels with the 'new' color.

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

OutlineFilter()
Construct a WholeImageFilter.

Method Summary

protected int[]
filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
Actually filter the pixels.
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

OutlineFilter

public OutlineFilter()
Construct a WholeImageFilter.

Method Details

filterPixels

protected int[] filterPixels(int width,
                             int height,
                             int[] inPixels,
                             Rectangle transformedSpace)
Actually filter the pixels.
Overrides:
filterPixels in interface WholeImageFilter
Parameters:
width - the image width
height - the image height
inPixels - the image pixels
transformedSpace - the output bounds
Returns:
the output pixels

toString

public String toString()