com.jhlabs.image

Class PlasmaFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class PlasmaFilter
extends WholeImageFilter

Field Summary

float
turbulence

Fields inherited from class com.jhlabs.image.WholeImageFilter

originalSpace, transformedSpace

Constructor Summary

PlasmaFilter()

Method Summary

protected int[]
filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
Colormap
getColormap()
Get the colormap to be used for the filter.
float
getScaling()
int
getSeed()
float
getTurbulence()
Returns the turbulence of the effect.
boolean
getUseColormap()
boolean
getUseImageColors()
void
randomize()
void
setColormap(Colormap colormap)
Set the colormap to be used for the filter.
void
setScaling(float scaling)
void
setSeed(int seed)
void
setTurbulence(float turbulence)
Specifies the turbulence of the texture.
void
setUseColormap(boolean useColormap)
void
setUseImageColors(boolean useImageColors)
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

Field Details

turbulence

public float turbulence

Constructor Details

PlasmaFilter

public PlasmaFilter()

Method Details

filterPixels

protected int[] filterPixels(int width,
                             int height,
                             int[] inPixels,
                             Rectangle transformedSpace)
Overrides:
filterPixels in interface WholeImageFilter

getColormap

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

getScaling

public float getScaling()

getSeed

public int getSeed()

getTurbulence

public float getTurbulence()
Returns the turbulence of the effect.
Returns:
the turbulence of the effect.

getUseColormap

public boolean getUseColormap()

getUseImageColors

public boolean getUseImageColors()

randomize

public void randomize()

setColormap

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

setScaling

public void setScaling(float scaling)

setSeed

public void setSeed(int seed)

setTurbulence

public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.
Parameters:
turbulence - the turbulence of the texture.

setUseColormap

public void setUseColormap(boolean useColormap)

setUseImageColors

public void setUseImageColors(boolean useImageColors)

toString

public String toString()