Class LineCaptcha

java.lang.Object
com.sure.tool.captcha.AbstractCaptcha
com.sure.tool.captcha.LineCaptcha
All Implemented Interfaces:
Captcha

public class LineCaptcha extends AbstractCaptcha
线段干扰验证码,参考 Hutool 的 LineCaptcha 设计。
Since:
0.1.0
Author:
suretool
  • Constructor Details

    • LineCaptcha

      public LineCaptcha(int width, int height, int codeCount, int interfereCount)
      创建线段干扰验证码。
      Parameters:
      width - 图片宽度
      height - 图片高度
      codeCount - 字符个数
      interfereCount - 干扰线数量
  • Method Details