com.google.code.kaptcha.impl
Class DefaultKaptcha
java.lang.Object
com.google.code.kaptcha.util.Configurable
com.google.code.kaptcha.impl.DefaultKaptcha
- All Implemented Interfaces:
- Producer
public class DefaultKaptcha
- extends Configurable
- implements Producer
Default Producer implementation which draws a captcha image using
WordRenderer, GimpyEngine, BackgroundProducer.
Text creation uses TextProducer.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultKaptcha
public DefaultKaptcha()
createImage
public BufferedImage createImage(String text)
- Create an image which will have written a distorted text.
- Specified by:
createImage in interface Producer
- Parameters:
text - the distorted characters
- Returns:
- image with the text
createText
public String createText()
- Specified by:
createText in interface Producer
- Returns:
- the text to be drawn
Copyright © 2013. All rights reserved.