com.google.code.kaptcha.text.impl
Class DefaultWordRenderer

java.lang.Object
  extended by com.google.code.kaptcha.util.Configurable
      extended by 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.


Constructor Summary
DefaultWordRenderer()
           
 
Method Summary
 java.awt.image.BufferedImage renderWord(java.lang.String word, int width, int height)
          Renders a word to an image.
 
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

DefaultWordRenderer

public DefaultWordRenderer()
Method Detail

renderWord

public java.awt.image.BufferedImage renderWord(java.lang.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 © 2010 Kaptcha. All Rights Reserved. Build version: 2.3.2