All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.code.kaptcha.NoiseProducer Maven / Gradle / Ivy

package com.google.code.kaptcha;

import java.awt.image.BufferedImage;

/**
 * {@link NoiseProducer} is responsible for adding noise to an image.
 */
public interface NoiseProducer
{
	/**
	 * Adds noise to an image. It uses four factor values to determine the noise
	 * curve.
	 * 
	 * @param image
	 *            the image to add the noise to
	 * @param factorOne
	 * @param factorTwo
	 * @param factorThree
	 * @param factorFour
	 */
	public void makeNoise(BufferedImage image, float factorOne,
			float factorTwo, float factorThree, float factorFour);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy