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
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
turbulence
public float turbulence
PlasmaFilter
public PlasmaFilter()
setTurbulence
public void setTurbulence(float turbulence)
- Specifies the turbulence of the texture.
- Parameters:
turbulence
- the turbulence of the texture.- 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)
getScaling
public float getScaling()
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(com.jhlabs.image.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:
WholeImageFilter
- Actually filter the pixels.
- Specified by:
filterPixels
in class WholeImageFilter
- 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:
toString
in class java.lang.Object