Text in Captcha Image using java

How to convert text to captcha image.

EDIT

I looked at jcaptcha. It creates random text for the identifier. But I need an image with the given text.

+4
source share
1 answer

Jcaptcha provides classes for converting text to image.

code example:

WordToImage image = ComposedWordToImage(fontGenerator, background,textPaster); BufferedImage image = image.getImage("text"); 

api doc WordToImage interface

+1
source

Source: https://habr.com/ru/post/1306765/


All Articles