com.google.code.kaptcha.impl
Class DefaultNoise

java.lang.Object
  extended by com.google.code.kaptcha.util.Configurable
      extended by 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.


Constructor Summary
DefaultNoise()
           
 
Method Summary
 void makeNoise(java.awt.image.BufferedImage image, float factorOne, float factorTwo, float factorThree, float factorFour)
          Draws a noise on the image.
 
Methods inherited from class com.google.code.kaptcha.util.Configurable
getConfig, setConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNoise

public DefaultNoise()
Method Detail

makeNoise

public void makeNoise(java.awt.image.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 to
factorOne -
factorTwo -
factorThree -
factorFour -


Copyright © 2010 Kaptcha. All Rights Reserved. Build version: 2.3.2