Package com.jhlabs.image
Class PlasmaFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
com.jhlabs.image.PlasmaFilter
- All Implemented Interfaces:
BufferedImageOp,Cloneable
-
Field Summary
FieldsFields 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.Get the colormap to be used for the filter.floatintgetSeed()floatReturns the turbulence of the effect.booleanbooleanvoidvoidsetColormap(Colormap colormap) Set the colormap to be used for the filter.voidsetScaling(float scaling) voidsetSeed(int seed) voidsetTurbulence(float turbulence) Specifies the turbulence of the texture.voidsetUseColormap(boolean useColormap) voidsetUseImageColors(boolean useImageColors) 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
-
Field Details
-
turbulence
public float turbulence
-
-
Constructor Details
-
PlasmaFilter
public PlasmaFilter()
-
-
Method Details
-
setTurbulence
public void setTurbulence(float turbulence) Specifies the turbulence of the texture.- Parameters:
turbulence- the turbulence of the texture.- See Also:
-
getTurbulence
public float getTurbulence()Returns the turbulence of the effect.- Returns:
- the turbulence of the effect.
- See Also:
-
setScaling
public void setScaling(float scaling) -
getScaling
public float getScaling() -
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:
-
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
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
-