com.jhlabs.image

Class QuiltFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class QuiltFilter
extends WholeImageFilter

Field Summary

Fields inherited from class com.jhlabs.image.WholeImageFilter

originalSpace, transformedSpace

Constructor Summary

QuiltFilter()
Construct a WholeImageFilter.

Method Summary

protected int[]
filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
Actually filter the pixels.
float
getA()
float
getB()
float
getC()
Colormap
getColormap()
Get the colormap to be used for the filter.
float
getD()
int
getIterations()
Get the number of iterations the effect is performed.
int
getK()
void
randomize()
void
setA(float a)
void
setB(float b)
void
setC(float c)
void
setColormap(Colormap colormap)
Set the colormap to be used for the filter.
void
setD(float d)
void
setIterations(int iterations)
Set the number of iterations the effect is performed.
void
setK(int k)
String
toString()

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

QuiltFilter

public QuiltFilter()
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

getA

public float getA()

getB

public float getB()

getC

public float getC()

getColormap

public Colormap getColormap()
Get the colormap to be used for the filter.
Returns:
the colormap

getD

public float getD()

getIterations

public int getIterations()
Get the number of iterations the effect is performed.
Returns:
the number of iterations

getK

public int getK()

randomize

public void randomize()

setA

public void setA(float a)

setB

public void setB(float b)

setC

public void setC(float c)

setColormap

public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.
Parameters:
colormap - the colormap
See Also:
getColormap()

setD

public void setD(float d)

setIterations

public void setIterations(int iterations)
Set the number of iterations the effect is performed.
Parameters:
iterations - the number of iterations

setK

public void setK(int k)

toString

public String toString()