nl.captcha.noise
Class StraightLineNoiseProducer

java.lang.Object
  extended by nl.captcha.noise.StraightLineNoiseProducer
All Implemented Interfaces:
NoiseProducer

public class StraightLineNoiseProducer
extends java.lang.Object
implements NoiseProducer

Draws a 4-pixel thick straight red line through the given image.

Author:
James Childers

Constructor Summary
StraightLineNoiseProducer()
          Default constructor creates a 4-pixel wide red line.
StraightLineNoiseProducer(java.awt.Color color, int thickness)
           
 
Method Summary
 void makeNoise(java.awt.image.BufferedImage image)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StraightLineNoiseProducer

public StraightLineNoiseProducer()
Default constructor creates a 4-pixel wide red line.


StraightLineNoiseProducer

public StraightLineNoiseProducer(java.awt.Color color,
                                 int thickness)
Method Detail

makeNoise

public void makeNoise(java.awt.image.BufferedImage image)
Specified by:
makeNoise in interface NoiseProducer


Copyright © 2010-2011 James Childers. All Rights Reserved.