Hi all I have found how to do this by using the Painter Class and using the constructer with parameters
Painter
public Painter(int width,
int height,
Color bGround,
Painter.Quality quality,
EffectConfig effectConfig,
Random rnd)
- Constructor.
- Parameters:
width - captcha image width, default DEFAULT_WIDTHheight - captcha image height, default DEFAULT_HEIGHTbGround - background color of captcha image, default white, can be nullquality - captcha image quality, default Painter.Quality.MAX, should use
max it does not have measurable speed penalty on modern jvm-s
(1.6u23), can be nulleffectConfig - used to define what effects should be used, can be nullrnd - random generator to be used, can be null
return new Cage(painter, null, null, null, null, null, null);
}