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.float
int
getSeed()
float
Returns the turbulence of the effect.boolean
boolean
void
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) 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
-
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: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
-