com.octo.captcha.component.image.textpaster.glyphsdecorator
Class BaffleGlyphsDecorator
java.lang.Object
com.octo.captcha.component.image.textpaster.glyphsdecorator.BaffleGlyphsDecorator
- All Implemented Interfaces:
- GlyphsDecorator
public class BaffleGlyphsDecorator
- extends java.lang.Object
- implements GlyphsDecorator
text decorator that paint holes on the string (erase some parts) You may specify the number of holes per glyph :
3 by default. You may specify the color of holes : white by default.
- Version:
- 1.0
- Author:
- Marc-Antoine Garrigue
- See Also:
{http://www.parc.xerox.com/research/istl/projects/captcha/default.html}
Method Summary |
void |
decorate(java.awt.Graphics2D g2,
Glyphs glyphs,
java.awt.image.BufferedImage backround)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaffleGlyphsDecorator
public BaffleGlyphsDecorator(java.lang.Integer numberOfHolesPerGlyph,
java.awt.Color holesColor)
- Parameters:
holesColor
- Color of the holes
BaffleGlyphsDecorator
public BaffleGlyphsDecorator(java.lang.Integer numberOfHolesPerGlyph,
ColorGenerator holesColorGenerator)
- Parameters:
numberOfHolesPerGlyph
- Number of holes around glyphesholesColorGenerator
- The colors for holes
BaffleGlyphsDecorator
public BaffleGlyphsDecorator(java.lang.Integer numberOfHolesPerGlyph,
ColorGenerator holesColorGenerator,
java.lang.Integer alphaCompositeType)
- Parameters:
numberOfHolesPerGlyph
- Number of holes around glyphesholesColorGenerator
- The colors for holes
decorate
public void decorate(java.awt.Graphics2D g2,
Glyphs glyphs,
java.awt.image.BufferedImage backround)
- Specified by:
decorate
in interface GlyphsDecorator
Copyright © 2003-2011 JCaptcha corp.. All Rights Reserved.