public static class Images.Captcha extends InputStream
Modifier and Type | Field and Description |
---|---|
jj.play.ns.nl.captcha.backgrounds.BackgroundProducer |
background |
List<Font> |
fonts |
jj.play.ns.nl.captcha.gimpy.GimpyRenderer |
gimpy |
int |
h |
Color |
noise |
String |
text |
Color |
textColor |
int |
w |
Constructor and Description |
---|
Captcha(int w,
int h) |
Modifier and Type | Method and Description |
---|---|
Images.Captcha |
addNoise()
Add noise to the captcha.
|
Images.Captcha |
addNoise(String color)
Add noise to the captcha.
|
String |
getText()
Tell the captche to draw a text and retrieve it
|
String |
getText(int length)
Tell the captche to draw a text of the specified size and retrieve it
|
String |
getText(int length,
String chars) |
String |
getText(String color)
Tell the captche to draw a text using the specified color (ex
|
String |
getText(String color,
int length)
Tell the captche to draw a text of the specified size using the
specified color (ex. #000000) and retrieve it
|
String |
getText(String color,
int length,
String chars) |
int |
read() |
int |
read(byte[] b) |
Images.Captcha |
setBackground(String color)
Set a solid background.
|
Images.Captcha |
setBackground(String from,
String to)
Set a gradient background.
|
Images.Captcha |
setSquigglesBackground()
Set a squiggles background
|
available, close, mark, markSupported, read, reset, skip
public String text
public jj.play.ns.nl.captcha.backgrounds.BackgroundProducer background
public jj.play.ns.nl.captcha.gimpy.GimpyRenderer gimpy
public Color textColor
public int w
public int h
public Color noise
public String getText()
public String getText(String color)
public String getText(int length)
public String getText(String color, int length)
public Images.Captcha addNoise()
public Images.Captcha addNoise(String color)
public Images.Captcha setBackground(String from, String to)
public Images.Captcha setBackground(String color)
public Images.Captcha setSquigglesBackground()
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly