public class CaptchaUtil extends Object
| 构造器和说明 |
|---|
CaptchaUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static Color |
color(int fc,
int bc)
给定范围获得随机颜色
|
static boolean |
gifCaptcha(String randomStr,
int width,
int height,
String file) |
static int |
num(int num)
产生0--num的随机数,不包括num
|
static boolean |
pngCaptcha(String randomStr,
int width,
int height,
String file) |
Copyright © 2016. All rights reserved.