com.google.code.kaptcha.impl
Class DefaultBackground

java.lang.Object
  extended by com.google.code.kaptcha.util.Configurable
      extended by com.google.code.kaptcha.impl.DefaultBackground
All Implemented Interfaces:
BackgroundProducer

public class DefaultBackground
extends Configurable
implements BackgroundProducer

Default implementation of BackgroundProducer, adds a gradient background to an image. The gradient color is diagonal and made of Color From (top left) and Color To (bottom right).


Constructor Summary
DefaultBackground()
           
 
Method Summary
 java.awt.image.BufferedImage addBackground(java.awt.image.BufferedImage baseImage)
           
 
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

DefaultBackground

public DefaultBackground()
Method Detail

addBackground

public java.awt.image.BufferedImage addBackground(java.awt.image.BufferedImage baseImage)
Specified by:
addBackground in interface BackgroundProducer
Parameters:
baseImage - the base image
Returns:
an image with a gradient background added to the base image.


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