Package com.jhlabs.image
Class PlasmaFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.WholeImageFilter
-
- com.jhlabs.image.PlasmaFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class PlasmaFilter extends WholeImageFilter
-
-
Field Summary
Fields Modifier and Type Field Description floatturbulence-
Fields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace
-
-
Constructor Summary
Constructors Constructor Description PlasmaFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int[]filterPixels(int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)Actually filter the pixels.ColormapgetColormap()Get the colormap to be used for the filter.floatgetScaling()Get the scaling.intgetSeed()floatgetTurbulence()Returns the turbulence of the effect.booleangetUseColormap()booleangetUseImageColors()voidrandomize()voidsetColormap(Colormap colormap)Set the colormap to be used for the filter.voidsetScaling(float scaling)Set the scaling.voidsetSeed(int seed)voidsetTurbulence(float turbulence)Specifies the turbulence of the texture.voidsetUseColormap(boolean useColormap)voidsetUseImageColors(boolean useImageColors)java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.WholeImageFilter
filter, transformSpace
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Method Detail
-
setTurbulence
public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.- Parameters:
turbulence- the turbulence of the texture. (min value: 0, max-value: 10)- See Also:
getTurbulence()
-
getTurbulence
public float getTurbulence()
Returns the turbulence of the effect.- Returns:
- the turbulence of the effect.
- See Also:
setTurbulence(float)
-
setScaling
public void setScaling(float scaling)
Set the scaling.- Parameters:
scaling- The scaling.- See Also:
getScaling()
-
getScaling
public float getScaling()
Get the scaling.- Returns:
- The scaling.
- See Also:
setScaling(float)
-
setColormap
public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.- Parameters:
colormap- the colormap- See Also:
getColormap()
-
getColormap
public Colormap getColormap()
Get the colormap to be used for the filter.- Returns:
- the colormap
- See Also:
setColormap(Colormap)
-
setUseColormap
public void setUseColormap(boolean useColormap)
-
getUseColormap
public boolean getUseColormap()
-
setUseImageColors
public void setUseImageColors(boolean useImageColors)
-
getUseImageColors
public boolean getUseImageColors()
-
setSeed
public void setSeed(int seed)
-
getSeed
public int getSeed()
-
randomize
public void randomize()
-
filterPixels
protected int[] filterPixels(int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-