eu.livotov.tpt.gui.widgets
Interface TPTCaptcha.CaptchaImageProvider
- All Known Implementing Classes:
- TPTCaptcha.DefaultCaptchaImageGenerator
- Enclosing class:
- TPTCaptcha
public static interface TPTCaptcha.CaptchaImageProvider
API for connecting custom image generators. Use setImageProvider method of the TPTCaptcha
component to set the new image provider if you want the captcha images to be generated
differently.
Method Summary |
java.awt.image.BufferedImage |
getCaptchaImage(java.lang.String text)
Should provide a BufferedImage that represens the capctha code. |
getCaptchaImage
java.awt.image.BufferedImage getCaptchaImage(java.lang.String text)
- Should provide a BufferedImage that represens the capctha code.
- Parameters:
text
- text to encode in the image
- Returns:
- encoded captcha image to be displayed