public class GrayscaleReduction extends ImageEffect
Constructor and Description |
---|
GrayscaleReduction()
Creates a
GrayscaleReduction object with the default parameters. |
GrayscaleReduction(GrayscaleReductionParameters pParameters)
Creates a
GrayscaleReduction object with the specified parameters.. |
Modifier and Type | Method and Description |
---|---|
EffectParameters |
getEffectParameters()
Returns the image effect parameters that configure the effect.
|
java.awt.image.BufferedImage |
process()
Returns an image of the Mandelbrot set according to the parameters that were set.
|
void |
setEffectParameters(EffectParameters pEffectParameters)
Sets the parameters for the grayscale reduction effect.
|
void |
setGrayscaleReductionParameters(GrayscaleReductionParameters pParameters)
Sets the parameters for the grayscale reduction effect.
|
isRunning, processAsThread, run
public GrayscaleReduction()
GrayscaleReduction
object with the default parameters.public GrayscaleReduction(GrayscaleReductionParameters pParameters)
GrayscaleReduction
object with the specified parameters..pParameters
- The parameters that configure the effect.public void setGrayscaleReductionParameters(GrayscaleReductionParameters pParameters)
pParameters
- The parameters that configure the effect.public void setEffectParameters(EffectParameters pEffectParameters)
GrayscaleReductionParameters
.setEffectParameters
in class ImageEffect
pEffectParameters
- The parameters that configure the effect.public EffectParameters getEffectParameters()
ImageEffect
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.