Package com.jhlabs.image
Class QuiltFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
com.jhlabs.image.QuiltFilter
- All Implemented Interfaces:
BufferedImageOp,Cloneable
-
Field Summary
Fields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace) Actually filter the pixels.floatgetA()floatgetB()floatgetC()Get the colormap to be used for the filter.floatgetD()intGet the number of iterations the effect is performed.intgetK()voidvoidsetA(float a) voidsetB(float b) voidsetC(float c) voidsetColormap(Colormap colormap) Set the colormap to be used for the filter.voidsetD(float d) voidsetIterations(int iterations) Set the number of iterations the effect is performed.voidsetK(int k) toString()Methods inherited from class com.jhlabs.image.WholeImageFilter
filter, transformSpaceMethods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
QuiltFilter
public QuiltFilter()
-
-
Method Details
-
randomize
public void randomize() -
setIterations
public void setIterations(int iterations) Set the number of iterations the effect is performed.- Parameters:
iterations- the number of iterations- See Also:
-
getIterations
public int getIterations()Get the number of iterations the effect is performed.- Returns:
- the number of iterations
- See Also:
-
setA
public void setA(float a) -
getA
public float getA() -
setB
public void setB(float b) -
getB
public float getB() -
setC
public void setC(float c) -
getC
public float getC() -
setD
public void setD(float d) -
getD
public float getD() -
setK
public void setK(int k) -
getK
public int getK() -
setColormap
Set the colormap to be used for the filter.- Parameters:
colormap- the colormap- See Also:
-
getColormap
Get the colormap to be used for the filter.- Returns:
- the colormap
- See Also:
-
filterPixels
Description copied from class:WholeImageFilterActually filter the pixels.- Specified by:
filterPixelsin classWholeImageFilter- Parameters:
width- the image widthheight- the image heightinPixels- the image pixelstransformedSpace- the output bounds- Returns:
- the output pixels
-
toString
-