com.google.code.kaptcha.impl
Class DefaultNoise
java.lang.Object
com.google.code.kaptcha.util.Configurable
com.google.code.kaptcha.impl.DefaultNoise
- All Implemented Interfaces:
- NoiseProducer
public class DefaultNoise
- extends Configurable
- implements NoiseProducer
The default implementation of NoiseProducer, adds a noise on an
image.
|
Method Summary |
void |
makeNoise(BufferedImage image,
float factorOne,
float factorTwo,
float factorThree,
float factorFour)
Draws a noise on the image. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultNoise
public DefaultNoise()
makeNoise
public void makeNoise(BufferedImage image,
float factorOne,
float factorTwo,
float factorThree,
float factorFour)
- Draws a noise on the image. The noise curve depends on the factor values.
Noise won't be visible if all factors have the value > 1.0f
- Specified by:
makeNoise in interface NoiseProducer
- Parameters:
image - the image to add the noise tofactorOne - factorTwo - factorThree - factorFour -
Copyright © 2013. All rights reserved.