Package org.zkoss.zkex.zul.impl
Class JHLabsCaptchaEngine
java.lang.Object
org.zkoss.zkex.zul.impl.JHLabsCaptchaEngine
- All Implemented Interfaces:
Serializable,CaptchaEngine
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intdrawText(Graphics2D g2D, Captcha captcha) byte[]generateCaptcha(Object data) Per the given data, generate the distortion Captcha image into a byte array.protected BufferedImagerotateChar(String substr, int width, int height, Font font, Color fontColor, Color bgColor)
-
Constructor Details
-
JHLabsCaptchaEngine
public JHLabsCaptchaEngine()
-
-
Method Details
-
generateCaptcha
Description copied from interface:CaptchaEnginePer the given data, generate the distortion Captcha image into a byte array.- Specified by:
generateCaptchain interfaceCaptchaEngine
-
drawText
-
rotateChar
protected BufferedImage rotateChar(String substr, int width, int height, Font font, Color fontColor, Color bgColor)
-