com.lamatek.captcha.ImageBackgroundProducer.
This class will take an image and use it as the
background for your captcha. You denote the image to
use via an image.url init-param.
The image can be stretched to fit the captcha or
tiled. You specify that by using an image.tile init-
param set to true or false. True is default.
If the image specified in the image.url cannot be
found, or an image.url was not specified, then the
default background color will be used.
An example:
<servlet>
<servlet-name>Captcha</servlet-name>
<display-name>Captcha</display-name>
<servlet-
class>nl.captcha.servlet.CaptchaServlet</servlet-class>
<init-param>
<param-name>cap.bg.imp</param-name>
<param-
value>com.lamatek.captcha.ImageBackgroundProducer</para
m-value>
</init-param>
<init-param>
<param-name>image.url</param-name>
<param-
value>http://mysite/images/bg.gif</param-value>
</init-param>
<init-param>
<param-name>image.tile</param-name>
<param-value>true</param-value>
</init-param>
.......
</servlet>
You can either place the class in the
simplecaptcha.jar file or just include it in your WEB-
INF/classes directory
under /com/lamatek/captcha/ImageBackgroundProdcuer.clas
s.
The image should be an image supported by Java (i.e. a
GIF or JPG).
Thanks.
Contains binary, source and readme.txt file.