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 float
turbulence
-
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.Colormap
getColormap()
Get the colormap to be used for the filter.float
getScaling()
Get the scaling.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)
Set the scaling.void
setSeed(int seed)
void
setTurbulence(float turbulence)
Specifies the turbulence of the texture.void
setUseColormap(boolean useColormap)
void
setUseImageColors(boolean useImageColors)
java.lang.String
toString()
-
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:WholeImageFilter
Actually filter the pixels.- Specified by:
filterPixels
in 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:
toString
in classjava.lang.Object
-
-