public final class Captcha extends AbstractCaptcha
DIFFICULTY_HIGH, DIFFICULTY_LOW, DIFFICULTY_MEDIUM
Constructor and Description |
---|
Captcha() |
Modifier and Type | Method and Description |
---|---|
Font |
getFont(String font,
Font defaultValue)
creates a font from given string
|
static String |
randomString(int length)
creates a random String in given length
|
static void |
writeOut(BufferedImage image,
OutputStream os,
String format)
write out image object to a output stream
|
generate
public Captcha()
public Font getFont(String font, Font defaultValue)
AbstractCaptcha
getFont
in class AbstractCaptcha
public static void writeOut(BufferedImage image, OutputStream os, String format) throws IOException
image
- os
- format
- IOException
public static String randomString(int length)
length
- length of the string to createCopyright © 2015 Lucee