com.octo.captcha.component.image.backgroundgenerator
Interface BackgroundGenerator

All Known Implementing Classes:
AbstractBackgroundGenerator, EllipseBackgroundGenerator, FileReaderRandomBackgroundGenerator, FunkyBackgroundGenerator, GradientBackgroundGenerator, MultipleShapeBackgroundGenerator, UniColorBackgroundGenerator

public interface BackgroundGenerator

Used by ComposedWordToImage to build a background image


Method Summary
 java.awt.image.BufferedImage getBackground()
          Generates a backround image on wich text will be paste.
 int getImageHeight()
           
 int getImageWidth()
           
 

Method Detail

getImageHeight

int getImageHeight()
Returns:
the generated image height

getImageWidth

int getImageWidth()
Returns:
teh generated image width

getBackground

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.