public class NoiseGenerator extends ImageEffect
Constructor and Description |
---|
NoiseGenerator()
Creates a
NoiseGenerator object with the default parameters. |
NoiseGenerator(NoiseGeneratorParameters pParameters)
Creates a
NoiseGenerator object with the specified parameters. |
Modifier and Type | Method and Description |
---|---|
EffectParameters |
getEffectParameters()
Returns the parameters that are currently used for the noise generator effect.
|
java.awt.image.BufferedImage |
process()
Returns an image processed with the current noise generator settings.
|
void |
setEffectParameters(EffectParameters pEffectParameters)
Sets the parameters for the noise generator effect.
|
void |
setNoiseGeneratorParameters(NoiseGeneratorParameters pParameters)
Sets the parameters for the noise generator effect.
|
isRunning, processAsThread, run
public NoiseGenerator()
NoiseGenerator
object with the default parameters.public NoiseGenerator(NoiseGeneratorParameters pParameters)
NoiseGenerator
object with the specified parameters.pParameters
- The parameters that configure the effect.public void setNoiseGeneratorParameters(NoiseGeneratorParameters pParameters)
pParameters
- The parameters that configure the effect.public void setEffectParameters(EffectParameters pEffectParameters)
NoiseGeneratorParameters
.setEffectParameters
in class ImageEffect
pEffectParameters
- The parameters that configure the effect.public EffectParameters getEffectParameters()
getEffectParameters
in class ImageEffect
public java.awt.image.BufferedImage process() throws java.lang.Exception
process
in class ImageEffect
java.lang.Exception
- if there are errors when processing the image effect.