com.google.code.kaptcha.text.impl
Class DefaultWordRenderer
java.lang.Object
com.google.code.kaptcha.util.Configurable
com.google.code.kaptcha.text.impl.DefaultWordRenderer
- All Implemented Interfaces:
- WordRenderer
public class DefaultWordRenderer
- extends Configurable
- implements WordRenderer
The default implementation of WordRenderer, creates an image with a
word rendered on it.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultWordRenderer
public DefaultWordRenderer()
renderWord
public BufferedImage renderWord(String word,
int width,
int height)
- Renders a word to an image.
- Specified by:
renderWord in interface WordRenderer
- Parameters:
word - The word to be rendered.width - The width of the image to be created.height - The height of the image to be created.
- Returns:
- The BufferedImage created from the word.
Copyright © 2013. All rights reserved.