railo.commons.img
Class Captcha
java.lang.Object
railo.commons.img.AbstractCaptcha
railo.commons.img.Captcha
public final class Captcha
- extends AbstractCaptcha
concrete captcha implementation
Captcha
public Captcha()
getFont
public Font getFont(String font,
Font defaultValue)
- Description copied from class:
AbstractCaptcha
- creates a font from given string
- Specified by:
getFont
in class AbstractCaptcha
- Returns:
writeOut
public static void writeOut(BufferedImage image,
OutputStream os,
String format)
throws IOException
- write out image object to a output stream
- Parameters:
image
- os
- format
-
- Throws:
IOException
randomString
public static String randomString(int length)
- creates a random String in given length
- Parameters:
length
- length of the string to create
- Returns:
Copyright © 2012 Railo