public class PngVCGenerator extends Generator
| 构造器和说明 |
|---|
PngVCGenerator() |
PngVCGenerator(int width,
int height) |
PngVCGenerator(int width,
int height,
int len) |
PngVCGenerator(int width,
int height,
int len,
Font font) |
PngVCGenerator(int width,
int height,
int len,
Font font,
float pbkAlpha,
float pFontAlpha,
float pOvalSize,
int pOvalCount)
this constructor is different from others.
|
| 限定符和类型 | 方法和说明 |
|---|---|
BufferedImage |
getValidCodeImage()
no result provide for gif validation code. only for PNG validation code image.
|
OutputStream |
write2out(OutputStream os) |
public PngVCGenerator()
public PngVCGenerator(int width,
int height)
public PngVCGenerator(int width,
int height,
int len)
public PngVCGenerator(int width,
int height,
int len,
Font font)
public PngVCGenerator(int width,
int height,
int len,
Font font,
float pbkAlpha,
float pFontAlpha,
float pOvalSize,
int pOvalCount)
width - image widthheight - image heightlen - validation code lengthfont - font featurespbkAlpha - alpha channel for image background. default 7fpFontAlpha - alpha channel for validation code font. default 7fpOvalSize - the interference oval strike size. default 4pOvalCount - the interference oval count. default 20public OutputStream write2out(OutputStream os)
public BufferedImage getValidCodeImage()
GeneratorgetValidCodeImage 在类中 Generatornull for GIFCopyright © 2017. All rights reserved.