How to convert text to captcha image.
EDIT
i looked at jcaptcha. It creates a random text for a id. But i need a image with the g开发者_开发知识库iven text.
Jcaptcha provides classes to convert a text into image.
sample code:
WordToImage image = ComposedWordToImage(fontGenerator, background,textPaster);
BufferedImage image = image.getImage("text");
api doc of WordToImage interface
精彩评论