com.octo.captcha.component.image.backgroundgenerator
Class FunkyBackgroundGenerator

java.lang.Object
  extended by com.octo.captcha.component.image.backgroundgenerator.AbstractBackgroundGenerator
      extended by com.octo.captcha.component.image.backgroundgenerator.FunkyBackgroundGenerator
All Implemented Interfaces:
BackgroundGenerator

public class FunkyBackgroundGenerator
extends AbstractBackgroundGenerator

Three color gradient background with randomization


Constructor Summary
FunkyBackgroundGenerator(java.lang.Integer width, java.lang.Integer height)
           
FunkyBackgroundGenerator(java.lang.Integer width, java.lang.Integer height, ColorGenerator colorGenerator)
           
FunkyBackgroundGenerator(java.lang.Integer width, java.lang.Integer height, ColorGenerator colorGeneratorLeftUp, ColorGenerator colorGeneratorLeftDown, ColorGenerator colorGeneratorRightUp, ColorGenerator colorGeneratorRightDown, float perturbationLevel)
           
 
Method Summary
 java.awt.image.BufferedImage getBackground()
          Generates a backround image on wich text will be paste.
 
Methods inherited from class com.octo.captcha.component.image.backgroundgenerator.AbstractBackgroundGenerator
getImageHeight, getImageWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunkyBackgroundGenerator

public FunkyBackgroundGenerator(java.lang.Integer width,
                                java.lang.Integer height)

FunkyBackgroundGenerator

public FunkyBackgroundGenerator(java.lang.Integer width,
                                java.lang.Integer height,
                                ColorGenerator colorGenerator)

FunkyBackgroundGenerator

public FunkyBackgroundGenerator(java.lang.Integer width,
                                java.lang.Integer height,
                                ColorGenerator colorGeneratorLeftUp,
                                ColorGenerator colorGeneratorLeftDown,
                                ColorGenerator colorGeneratorRightUp,
                                ColorGenerator colorGeneratorRightDown,
                                float perturbationLevel)
Method Detail

getBackground

public java.awt.image.BufferedImage getBackground()
Generates a backround image on wich text will be paste. Implementations must take into account the imageHeigt and imageWidth.

Returns:
the background image


Copyright 2003-2009 JCaptcha. All Rights Reserved.