wsj0413 / kaptcha

Automatically exported from code.google.com/p/kaptcha
Other
0 stars 0 forks source link

How do I disable the default WaterRipple effect? #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I config the web.xml to set image width and height to 80 and 30,the 
font size is set to 30.But I found that,the text rendered is to difficult 
to read.So I want to disable the WaterRipple effect,maybe then it will be 
clearer.

Original issue reported on code.google.com by BlackWin...@gmail.com on 22 Oct 2008 at 1:09

GoogleCodeExporter commented 8 years ago
You need to create your own ObscurificatorImpl which implements the GimpyEngine 
interface that does not do 
anything. Look at WaterRipple for an example. Just return the unmodified 
BufferedImage. In the web.xml 
configuration, just define your Constants.KAPTCHA_OBSCURIFICATOR_IMPL so that 
WaterRipple isn't executed 
and your code is.

Original comment by latch...@gmail.com on 22 Oct 2008 at 3:19

GoogleCodeExporter commented 8 years ago
Hi Latchkey,

Maybe you can provide options either user want to ripple wave effect or not.

tq.

Original comment by hudzai...@gmail.com on 18 Feb 2009 at 5:49

GoogleCodeExporter commented 8 years ago
Feel free to click that Donate button and I might consider spending my valuable 
time on something I don't need. 
=) Otherwise, I'm willing to accept a patch.

Original comment by latch...@gmail.com on 18 Feb 2009 at 6:16