org.zkoss.zkex.zul.impl
Class JHLabsCaptchaEngine
java.lang.Object
org.zkoss.zkex.zul.impl.JHLabsCaptchaEngine
- All Implemented Interfaces:
- Serializable, org.zkoss.zul.impl.CaptchaEngine
public class JHLabsCaptchaEngine
- extends Object
- implements org.zkoss.zul.impl.CaptchaEngine, Serializable
A captcha engine implemented with JH Labs libraries.
Available in ZK PE and ZK EE.
See also JH Labs
- Since:
- 3.0.0
- Author:
- henrichen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JHLabsCaptchaEngine
public JHLabsCaptchaEngine()
generateCaptcha
public byte[] generateCaptcha(Object data)
- Specified by:
generateCaptcha
in interface org.zkoss.zul.impl.CaptchaEngine
drawText
protected int drawText(Graphics2D g2D,
org.zkoss.zul.Captcha captcha)
rotateChar
protected BufferedImage rotateChar(String substr,
int width,
int height,
Font font,
Color fontColor,
Color bgColor)
Copyright © 2015. All Rights Reserved.