com.google.code.kaptcha.impl
Class DefaultBackground
java.lang.Object
com.google.code.kaptcha.util.Configurable
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).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBackground
public DefaultBackground()
addBackground
public BufferedImage addBackground(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 © 2013. All rights reserved.