com.octo.captcha.component.image.backgroundgenerator
Class UniColorBackgroundGenerator
java.lang.Object
com.octo.captcha.component.image.backgroundgenerator.AbstractBackgroundGenerator
com.octo.captcha.component.image.backgroundgenerator.UniColorBackgroundGenerator
- All Implemented Interfaces:
- BackgroundGenerator
public class UniColorBackgroundGenerator
- extends AbstractBackgroundGenerator
Contructs uniform painted background, with default wolor White.
Method Summary |
java.awt.image.BufferedImage |
getBackground()
Generates a backround image on wich text will be paste. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniColorBackgroundGenerator
public UniColorBackgroundGenerator(java.lang.Integer width,
java.lang.Integer height)
UniColorBackgroundGenerator
public UniColorBackgroundGenerator(java.lang.Integer width,
java.lang.Integer height,
java.awt.Color color)
UniColorBackgroundGenerator
public UniColorBackgroundGenerator(java.lang.Integer width,
java.lang.Integer height,
ColorGenerator colorGenerator)
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.