9 Star 13 Fork 0

Gitee 极速下载 / patchca

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/pusuo/patchca
克隆/下载
README.md 689 Bytes
一键复制 编辑 原始数据 按行查看 历史
玄畅 提交于 2015-03-15 20:43 . add sample pic

Patchca: verification code library for Java

Overview

Simple yet powerful verification code library written in Java with zero dependency.

You can generate verification code picture like this:

ConfigurableCaptchaService cs = new ConfigurableCaptchaService();
cs.setColorFactory(new SingleColorFactory(new Color(25, 60, 170)));
cs.setFilterFactory(new CurvesRippleFilterFactory(cs.getColorFactory()));

FileOutputStream fos = new FileOutputStream("patcha_demo.png");
EncoderHelper.getChallangeAndWriteImage(cs, "png", fos);
fos.close();

it generate picture like this:
sample

Java
1
https://gitee.com/mirrors/patchca.git
git@gitee.com:mirrors/patchca.git
mirrors
patchca
patchca
master

搜索帮助