程序包 com.wf.captcha

类 ArithmeticCaptcha


public class ArithmeticCaptcha extends ArithmeticCaptchaAbstract
png格式验证码
作者:
Created by 王帆 on 2018-07-27 上午 10:08.
  • 构造器详细资料

    • ArithmeticCaptcha

      public ArithmeticCaptcha()
    • ArithmeticCaptcha

      public ArithmeticCaptcha(int width, int height)
    • ArithmeticCaptcha

      public ArithmeticCaptcha(int width, int height, int len)
    • ArithmeticCaptcha

      public ArithmeticCaptcha(int width, int height, int len, Font font)
  • 方法详细资料

    • out

      public boolean out(OutputStream out)
      生成验证码
      指定者:
      out 在类中 Captcha
      参数:
      out - 输出流
      返回:
      是否成功
    • toBase64

      public String toBase64()
      从类复制的说明: Captcha
      输出base64编码
      指定者:
      toBase64 在类中 Captcha
      返回:
      base64编码字符串
    • getContentType

      public String getContentType()
      从类复制的说明: Captcha
      获取图片类型
      指定者:
      getContentType 在类中 Captcha
      返回:
      图片格式,MIME类型