com.octo.captcha.component.image.wordtoimage
Interface WordToImage

All Known Implementing Classes:
AbstractWordToImage, ComposedWordToImage, DeformedComposedWordToImage, FilteredComposedWordToImage, SimpleWordToImage

public interface WordToImage

Provides methods to tranform a word to an image

.


Method Summary
 java.awt.image.BufferedImage getImage(java.lang.String word)
          Main method for this service Return an image with the specified
 int getImageHeight()
           
 int getImageWidth()
           
 int getMaxAcceptedWordLenght()
          Deprecated. misspelled, use getMaxAcceptedWordLength() instead
 int getMaxAcceptedWordLength()
           
 int getMinAcceptedWordLenght()
          Deprecated. misspelled, use getMinAcceptedWordLength() instead
 int getMinAcceptedWordLength()
           
 int getMinFontSize()
           
 

Method Detail

getMaxAcceptedWordLenght

int getMaxAcceptedWordLenght()
Deprecated. misspelled, use getMaxAcceptedWordLength() instead

Returns:
the max word lenght accepted by this word2image service

getMinAcceptedWordLenght

int getMinAcceptedWordLenght()
Deprecated. misspelled, use getMinAcceptedWordLength() instead

Returns:
the min word lenght accepted by this word2image service

getMaxAcceptedWordLength

int getMaxAcceptedWordLength()
Returns:
the max word length accepted by this word2image service

getMinAcceptedWordLength

int getMinAcceptedWordLength()
Returns:
the min word length accepted by this word2image service

getImageHeight

int getImageHeight()
Returns:
the generated image height

getImageWidth

int getImageWidth()
Returns:
teh generated image width

getMinFontSize

int getMinFontSize()
Returns:
the min font size for the generated image

getImage

java.awt.image.BufferedImage getImage(java.lang.String word)
                                      throws CaptchaException
Main method for this service Return an image with the specified

Returns:
the generated image
Throws:
CaptchaException - if word is invalid or an exception occurs during the image generation


Copyright 2003-2009 JCaptcha. All Rights Reserved.