code: public BufferedImage generate(String text, int width, int height, String[] fonts, boolean useAntiAlias, Color fontColor, int fontSize, int difficulty) throws CaptchaException {
  	if (difficulty == DIFFICULTY_LOW) {
  	    return generate(text, width, height, fonts, useAntiAlias, fontColor, fontSize, 0, 0, 0, 0, 0, 0, 230, 25);
  	}
  	if (difficulty == DIFFICULTY_MEDIUM) {
  	    return generate(text, width, height, fonts, useAntiAlias, fontColor, fontSize, 0, 0, 5, 30, 0, 0, 200, 35);
  	}
  	return generate(text, width, height, fonts, useAntiAlias, fontColor, fontSize, 4, 10, 30, 60, 4, 10, 170, 45);
      }
docs: generates a Captcha as a Buffered Image file
  
  @param text text for the captcha
  @param width width of the resulting image
  @param height height of the resulting image
  @param fonts list of font used for the captcha (all font are random used)
  @param useAntiAlias use anti aliasing or not
  @param fontColor color of the font
  @param fontSize size of the font
  @param difficulty difficulty of the reslting captcha
  @return captcha image
  @throws CaptchaException