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
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论